code: protected void addModulePackagesList(Map<ModuleElement, Set<PackageElement>> modules, String text,
              String tableSummary, Content body, ModuleElement mdle) {
          Content profNameContent = new StringContent(mdle.getQualifiedName().toString());
          Content heading = HtmlTree.HEADING(HtmlConstants.PACKAGE_HEADING, true,
                  getTargetModuleLink("classFrame", profNameContent, mdle));
          heading.addContent(Contents.SPACE);
          heading.addContent(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);
          List<PackageElement> packages = new ArrayList<>(modules.get(mdle));
          for (PackageElement pkg : packages) {
              if ((!(configuration.nodeprecated && utils.isDeprecated(pkg)))) {
                  ul.addContent(getPackage(pkg, mdle));
              }
          }
          htmlTree.addContent(ul);
          body.addContent(htmlTree);
      }
docs: {@inheritDoc}