Change HashSet -> LinkedHashSet: deterministic iteration order.