static <C> @NonNull ComponentPreprocessor<C> wrap(
            final @NonNull BiFunction<@NonNull CommandContext<C>, @NonNull CommandInput,
                    @NonNull ArgumentParseResult<Boolean>> function
    ) {
        return function::apply;
    }
Wraps the given {@code function} in a preprocessor.

@param function the function
@return the wrapped function
@param <C> the command sender type
cloud-core/src/main/java/org/incendo/cloud/component/preprocessor/ComponentPreprocessor.java