code: public boolean methodsMatch(Method method)
      {
          boolean match = false;
  
          if (method == ivMethod ||
              method == ivBridgeMethod)
          {
              match = true;
          }
          else if (method.getName().equals(ivMethod.getName()))
          {
              Class<?>[] parms1 = method.getParameterTypes();
              Class<?>[] parms2 = ivMethod.getParameterTypes();
              if (parms1.length == parms2.length)
              {
                  match = true;
                  int length = parms1.length;
                  for (int i = 0; i < length; i++)
                  {
                      if (parms1[i] != parms2[i])
                      {
                          match = false;
                          break;
                      }
                  }
  
                  // Also check against the bridge method, if present
                  if (!match && ivBridgeMethod != null)
                  {
                      match = true;
                      parms2 = ivBridgeMethod.getParameterTypes();
                      for (int i = 0; i < length; i++)
                      {
                          if (parms1[i] != parms2[i])
                          {
                              match = false;
                              break;
                          }
                      }
                  }
              }
          }
  
          return match;
      }
docs: d517824