@Override
    public @NonNull Stream<@NonNull Suggestion> process(
            final @NonNull CommandPreprocessingContext<C> context,
            final @NonNull Stream<@NonNull Suggestion> suggestions
    ) {
        final String input;
        if (context.commandInput().isEmpty(true /* ignoreWhitespace */)) {
            input = "";
        } else {
            input = context.commandInput().skipWhitespace().remainingInput();
        }
        return suggestions.map(suggestion -> {
            final String filtered = this.filter.filter(context, suggestion.suggestion(), input);
            if (filtered == null) {
                return null;
            }
            return suggestion.withSuggestion(filtered);
        }).filter(Objects::nonNull);
    }
Create a new {@link FilteringSuggestionProcessor}.

@param filter mode
cloud-core/src/main/java/org/incendo/cloud/suggestion/FilteringSuggestionProcessor.java