code: public static Method getMethod(Class<?> cls, String methodName, Class<?>... types) {
          try {
              return cls.getMethod(methodName, types);
          } catch (Exception e) {
              return null;
          }
      }
docs: Get cls method name by name and parameter types
  
  @param cls
  @param methodName
  @param types
  @return