code: private void getMethods(ArrayList<JMethod> methodList)
    {
      for (JMethod method : getDeclaredMethods()) {
        if (! methodList.contains(method))
          methodList.add(method);
      }
  
      if (getSuperClass() != null) {
        for (JMethod method : getSuperClass().getMethods()) {
          if (! methodList.contains(method))
            methodList.add(method);
        }
      }
    }
docs: Returns the matching method