code: private static Set<Integer> setForRange(int max) {
      Set<Integer> set = Sets.newLinkedHashSet();
      for (int i = 0; i < max; i++) {
        set.add(i);
      }
      return set;
    }
docs: Returns a {@link LinkedHashSet} containing the integers in {@code [0, max)}, in order.