public static <R> R doIfNotNull(final Object input,
                                    final CheckedSupplier<R> trueFunction) {
        return doIfNotNull(input, trueFunction, () -> null).get();
    }
Do if not null supplier.

@param <R>          the type parameter
@param input        the input
@param trueFunction the true function
@return the value from the supplier or null
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java