docs: static int getMethodId(Method method,
                             Method[] allMethods,
                             int startIndex)
      {
          int numMethods = allMethods.length;
          for (int i = startIndex; i < numMethods; ++i)
          {
              if (methodsMatch(method, allMethods[i]))
                  return i;
          }
  
          // Search through from the beginning back to the starting point,
          // in case the method is on multiple interfaces, and thus may
          // be sorted in a different order in the allMethods list.        d369262.6
          for (int i = 0; i < startIndex; ++i)
          {
              if (methodsMatch(method, allMethods[i]))
                  return i;
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
          {
              Tr.debug(tc, "getMethodId: start = " + startIndex);
              Tr.debug(tc, "getMethodId: method = " + method);
              for (int i = 0; i < numMethods; ++i)
              {
                  Tr.debug(tc, "getMethodId: [" + i + "] = " + allMethods[i]);
              }
          }
  
          throw new RuntimeException("Internal Error: Method not found: " + method);
      }