@Override
    public @NonNull ArgumentParseResult<E> parse(
            final @NonNull CommandContext<C> commandContext,
            final @NonNull CommandInput commandInput
    ) {
        final String input = commandInput.readString();

        for (final E value : this.acceptedValues) {
            if (value.name().equalsIgnoreCase(input)) {
                return ArgumentParseResult.success(value);
            }
        }

        return ArgumentParseResult.failure(new EnumParseException(input, this.enumClass, commandContext));
    }
Returns a collection containing all accepted values.

@return the accepted values
cloud-core/src/main/java/org/incendo/cloud/parser/standard/EnumParser.java