code: public ExecutableElement findMethod(TypeElement te, ExecutableElement method) {
          for (Element m : getMethods(te)) {
              if (executableMembersEqual(method, (ExecutableElement)m)) {
                  return (ExecutableElement)m;
              }
          }
          return null;
      }
docs: Search for the given method in the given class.
  
  @param  te        Class to search into.
  @param  method    Method to be searched.
  @return ExecutableElement Method found, null otherwise.