docs: public static <T> Collection<T> toUnique(Iterable<T> self, Comparator<T> comparator) {
          Collection<T> result = createSimilarCollection((Collection<T>) self);
          addAll(result, toUnique(self.iterator(), comparator));
          return result;
      }