code: @SafeVarargs
      public static <T> Set<T> asSet(T... array) {
          Set<T> set = null;
          if (array != null) {
             set = new HashSet<>(Arrays.asList(array));
          }
          return set;
      }
docs: Creates a set from the array elements.
  
  @param array the array with the elements
  
  @return the set with the elements