code: public static <T> Set<T> setOf(T... objects) {
          if (objects == null || objects.length == 0) {
              return Collections.emptySet();
          }
          return new HashSet<>(Arrays.asList(objects));
      }
docs: Creates a set of the given objects.
  
  @param objects The objects
  @param <T>     The type
  @return The set