public static boolean isToStringMethod(Method method) {
        return method != null && "toString".equals(method.getName()) && method.getParameterTypes().length == 0;
    }
Determine whether the given method is a "toString" method.

@see Object#toString()
android/android_framework/patch-magisk/bridge/src/main/java/github/tornaco/android/thanox/magisk/bridge/util/ReflectionUtils.java