public static <T, U> Function<T, U> consumerToFunction(Consumer<T> consumer) {
        return new ConsumerToFunction<>(consumer);
    }
A collection of utility methods for delegating Java 8 functions
helper/src/main/java/me/lucko/helper/utils/Delegates.java