code: public static <T> HashSet<T> newHashSet(final Iterable<? extends T> iterable) {
      final HashSet<T> set = newHashSet();
      for (final T t : iterable) {
        set.add(t);
      }
      return set;
    }
docs: new has set from iterable.
  
  @param iterable iterable to add to hash set
  @return hash set