@SuppressWarnings("rawtypes")
    public static @NonNull CompletableFuture<Iterable<@NonNull Suggestion>> mapSuggestions(final @NonNull Object input) {
        if (input instanceof CompletableFuture) {
            return mapFuture((CompletableFuture) input);
        }
        return CompletableFuture.completedFuture(mapCompleted(input));
    }
Maps the suggestions to a future of a list of suggestions.

@param input the input
@return the mapped future
cloud-annotations/src/main/java/org/incendo/cloud/annotations/suggestion/MethodSuggestionProvider.java