code: public void buildContents(XMLNode node, Content contentTree) {
          Content contentListTree = writer.getContentsHeader();
          PackageDoc[] packages = configuration.packages;
          printedPackageHeaders = new HashSet<String>();
          for (int i = 0; i < packages.length; i++) {
              if (hasConstantField(packages[i]) && ! hasPrintedPackageIndex(packages[i].name())) {
                  writer.addLinkToPackageContent(packages[i],
                      parsePackageName(packages[i].name()),
                      printedPackageHeaders, contentListTree);
              }
          }
          contentTree.addContent(writer.getContentsList(contentListTree));
      }
docs: Build the list of packages.
  
  @param node the XML element that specifies which components to document
  @param contentTree the content tree to which the content list will be added