code: protected void addPackagesList(PackageDoc[] packages, String text,
              String tableSummary, Content body) {
          Content heading = HtmlTree.HEADING(HtmlConstants.PACKAGE_HEADING, true,
                  packagesLabel);
          Content div = HtmlTree.DIV(HtmlStyle.indexContainer, heading);
          HtmlTree ul = new HtmlTree(HtmlTag.UL);
          ul.setTitle(packagesLabel);
          for(int i = 0; i < packages.length; i++) {
              // Do not list the package if -nodeprecated option is set and the
              // package is marked as deprecated.
              if (packages[i] != null &&
                      (!(configuration.nodeprecated && Util.isDeprecated(packages[i])))) {
                  ul.addContent(getPackage(packages[i]));
              }
          }
          div.addContent(ul);
          body.addContent(div);
      }
docs: {@inheritDoc}