code: public static <T> Set<T> arrayToSet(T [] array) {
          return new HashSet<T>(Arrays.asList(array));
      }
docs: Convenience method for building a set from an array
  @param array
  @param <T>
  @return a new set created from var args