public static Object invokeMethod(Method method, Object target, Object... args) {
        try {
            method.setAccessible(true);
            return method.invoke(target, args);
        } catch (Exception ex) {
            handleReflectionException(ex);
        }
        throw new IllegalStateException("Should never getOrCreate here");
    }
Invoke the specified {@link Method} against the supplied target object global the
supplied arguments. The target object can be {@code null} when invoking a
static {@link Method}.
<p>Thrown exceptions are handled via a call to {@link #handleReflectionException}.

@param method the method to invoke
@param target the target object to invoke the method on
@param args   the invocation arguments (may be {@code null})
@return the invocation result, if any
android/android_framework/patch-magisk/bridge/src/main/java/github/tornaco/android/thanox/magisk/bridge/util/ReflectionUtils.java