private static void printOrdered(Set<String> set) {
    List<String> ordered = new ArrayList<>(set);

    Collections.sort(ordered);
    for (String item : ordered) {
      System.out.println(item);
    }
  }
private static void printOrdered(Set<String> set)