code: @Nullable
      private static Method findMethod(JavaClass cls, String name, String sig) {
          Method[] methods = cls.getMethods();
          for (Method m : methods) {
              if (m.getName().equals(name) && m.getSignature().equals(sig)) {
                  return m;
              }
          }
  
          return null;
      }
docs: finds the method in specified class by name and signature
  
  @param cls
  the class to look the method in
  @param name
  the name of the method to look for
  @param sig
  the signature of the method to look for
  
  @return the Method object for the specified information