code: public static <T> Set<T> asSet(T... items) {
          Set<T> set = new HashSet<T>();
          for (T item : items) {
              set.add(item);
          }
          return set;
      }
docs: Creates a {@link Set} from a collection of items
  
  @param items The items to create the set from
  @return The set created from the collection of items