code: public MethodDoc findMethod(ClassDoc cd, MethodDoc method) {
          MethodDoc[] methods = cd.methods();
          for (MethodDoc m : methods) {
              if (executableMembersEqual(method, m)) {
                  return m;
  
              }
          }
          return null;
      }
docs: Search for the given method in the given class.
  
  @param  cd        Class to search into.
  @param  method    Method to be searched.
  @return MethodDoc Method found, null otherwise.