code: protected void addModulesList(Collection<ModuleElement> modules, String text, String tableSummary, Content body) {
          Content table = (configuration.isOutputHtml5())
                  ? HtmlTree.TABLE(HtmlStyle.overviewSummary, getTableCaption(new RawHtml(text)))
                  : HtmlTree.TABLE(HtmlStyle.overviewSummary, tableSummary, getTableCaption(new RawHtml(text)));
          table.addContent(getSummaryTableHeader(moduleTableHeader, "col"));
          Content tbody = new HtmlTree(HtmlTag.TBODY);
          addModulesList(modules, tbody);
          table.addContent(tbody);
          Content anchor = getMarkerAnchor(text);
          Content div = HtmlTree.DIV(HtmlStyle.contentContainer, anchor);
          div.addContent(table);
          if (configuration.allowTag(HtmlTag.MAIN)) {
              htmlTree.addContent(div);
          } else {
              body.addContent(div);
          }
      }
docs: Add the list of modules.
  
  @param text The table caption
  @param tableSummary the summary of the table tag
  @param body the content tree to which the module list will be added