code: @SafeVarargs
      @Deprecated
      @SuppressWarnings("deprecation")
      public static <E extends Enum<E>> EnumValidator<E> create(final Class<E> enumType, final boolean nullable, final E... allowed) {
          return new EnumValidator<E>(enumType, nullable, allowed);
      }
docs: Creates a new validator for the enum type with the allowed values defined in the {@code allowed} parameter.
  
  @param enumType the type of the enum.
  @param nullable {@code true} if the value is allowed to be {@code null}, otherwise {@code false}.
  @param allowed  the enum values that are allowed.
  @param <E>      the type of the enum.
  
  @return a new validator.
  @deprecated use {@link #create(Class, Enum[])} since {@link org.jboss.as.controller.AttributeDefinition} handles the nullable check.