class Util {

    @Deprecated
    public static <T, R> Function<T, Optional<R>> optFunc(final Function<T, R> inputFunc) {
        return ((Function<R, Optional<R>>) Optional::ofNullable).compose(inputFunc);
    }

    private  Util();

}