public static <T> T throwIfNull(final T value, final CheckedSupplier<Throwable> handler) throws Throwable {
        throwIf(value == null, handler);
        return value;
    }
Throw if null.

@param <T>     the type parameter
@param value   the value
@param handler the handler
@return the t
@throws Throwable the throwable
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java