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