docs: public static Method findDeclaredMethodByName(Class<?> clazz, String methodName) {
          for (Method method : AccessController.doPrivileged(new GetDeclaredMethodsAction(clazz))) {
              if (methodName.equals(method.getName())) {
                  return method;
              }
          }
          return null;
      }