code: public static <E> Set<E> newHashSet(E... values) {
      Set<E> set = new HashSet<E>(values.length);
      for (E e : values) {
        set.add(e);
      }
      return set;
    }
docs: <p>
  newHashSet.
  </p>
  
  @param values a E object.
  @param <E> a E object.
  @return a {@link java.util.Set} object.