code: public void buildFieldDoc(XMLNode node, Content memberDetailsTree) throws DocletException {
          if (writer == null) {
              return;
          }
          if (!fields.isEmpty()) {
              Content fieldDetailsTree = writer.getFieldDetailsTreeHeader(typeElement, memberDetailsTree);
  
              Element lastElement = fields.get(fields.size() - 1);
              for (Element element : fields) {
                  currentElement = (VariableElement)element;
                  Content fieldDocTree = writer.getFieldDocTreeHeader(currentElement, fieldDetailsTree);
                  buildChildren(node, fieldDocTree);
                  fieldDetailsTree.addContent(writer.getFieldDoc(
                          fieldDocTree, currentElement == lastElement));
              }
              memberDetailsTree.addContent(
                      writer.getFieldDetails(fieldDetailsTree));
          }
      }
docs: Build the field 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