code: protected void addModulesList(Collection<ModuleElement> modules, String text,
              String tableSummary, Content body) {
          Content heading = HtmlTree.HEADING(HtmlConstants.MODULE_HEADING, true,
                  contents.modulesLabel);
          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.modulesLabel);
          for (ModuleElement mdle: modules) {
              ul.addContent(getModuleLink(mdle));
          }
          htmlTree.addContent(ul);
          body.addContent(htmlTree);
      }
docs: {@inheritDoc}