code: @Override
      protected void addPackagesList(Collection<PackageElement> packages, String text,
              String tableSummary, Content body) {
          Content heading = HtmlTree.HEADING(HtmlConstants.PACKAGE_HEADING, true,
                  contents.packagesLabel);
          HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN))
                  ? HtmlTree.MAIN(HtmlStyle.indexContainer, heading)
                  : HtmlTree.DIV(HtmlStyle.indexContainer, heading);
          HtmlTree ul = new HtmlTree(HtmlTag.UL);
          ul.setTitle(contents.packagesLabel);
          for (PackageElement aPackage : packages) {
              // Do not list the package if -nodeprecated option is set and the
              // package is marked as deprecated.
              if (aPackage != null &&
                  (!(configuration.nodeprecated && utils.isDeprecated(aPackage)))) {
                  ul.addContent(getPackage(aPackage));
              }
          }
          htmlTree.addContent(ul);
          body.addContent(htmlTree);
      }
docs: {@inheritDoc}