static <T> T wrap(ThrowingFunction<T> function) {
        try {
            return function.apply();
        } catch (Exception e) {
            return null;
        }
    }
operation function.
If an exception occurs, it will directly return a null.

@param function apply function.
@param <T> t
@return T
shenyu-plugin/shenyu-plugin-security/shenyu-plugin-jwt/src/main/java/org/apache/shenyu/plugin/jwt/exception/ThrowingFunction.java