@ApiStatus.ScheduledForRemoval(inVersion = "5.0.0")
  @Deprecated
  @SafeVarargs
  @SuppressWarnings("varargs")
  public static <E extends Enum<E>> @NotNull Set<E> enumSet(final Class<E> type, final E@NotNull... constants) {
    return MonkeyBars.enumSet(type, constants);
  }
Creates a set from an array of enum constants.

@param type the enum type
@param constants the enum constants
@param <E> the enum type
@return the set
@since 4.0.0
@deprecated for removal since 4.8.0, use {@link MonkeyBars#enumSet(Class, Enum[])}
api/src/main/java/net/kyori/adventure/util/ShadyPines.java