code: public static <E> CompactLinkedHashSet<E> create(Collection<? extends E> collection) {
      CompactLinkedHashSet<E> set = createWithExpectedSize(collection.size());
      set.addAll(collection);
      return set;
    }
docs: Creates a <i>mutable</i> {@code CompactLinkedHashSet} instance containing the elements of the
  given collection in the order returned by the collection's iterator.
  
  @param collection the elements that the set should contain
  @return a new {@code CompactLinkedHashSet} containing those elements (minus duplicates)