code: public void buildMethodDoc(XMLNode node, Content memberDetailsTree) throws DocletException {
          if (writer == null) {
              return;
          }
          if (hasMembersToDocument()) {
              Content methodDetailsTree = writer.getMethodDetailsTreeHeader(typeElement,
                      memberDetailsTree);
  
              Element lastElement = methods.get(methods.size() - 1);
              for (Element method : methods) {
                  currentMethod = (ExecutableElement)method;
                  Content methodDocTree = writer.getMethodDocTreeHeader(currentMethod, methodDetailsTree);
                  buildChildren(node, methodDocTree);
                  methodDetailsTree.addContent(writer.getMethodDoc(
                          methodDocTree, currentMethod == lastElement));
              }
              memberDetailsTree.addContent(writer.getMethodDetails(methodDetailsTree));
          }
      }
docs: Build the method documentation.
  
  @param node the XML element that specifies which components to document
  @param memberDetailsTree the content tree to which the documentation will be added
  @throws DocletException if there is a problem while building the documentation