code: public static Method findMethod(Class<?> c, String methodName) {
          for (Method m : c.getMethods()) {
              if (!m.getName().equalsIgnoreCase(methodName)) {
                  continue;
              }
              if (m.getParameterCount() != 1) {
                  continue;
              }
              return m;
          }
  
          return null;
      }
docs: Find method method.
  
  @param c          the c
  @param methodName the method name
  @return the method