private static <C> void flattenChain(
            final @NonNull List<SuggestionProcessor<C>> into,
            final @NonNull Collection<SuggestionProcessor<C>> links
    ) {
        for (final SuggestionProcessor<C> link : links) {
            if (link instanceof ChainedSuggestionProcessor) {
                flattenChain(into, ((ChainedSuggestionProcessor<C>) link).links);
            } else {
                into.add(link);
            }
        }
    }
Creates a chained processor from the provided processors. Chained processors will be
recursively flattened.

@param links processors to chain
cloud-core/src/main/java/org/incendo/cloud/suggestion/ChainedSuggestionProcessor.java