code: protected void addPackagesList(Collection<PackageElement> packages, Content tbody) {
          boolean altColor = true;
          for (PackageElement pkg : packages) {
              if (!pkg.isUnnamed()) {
                  if (!(configuration.nodeprecated && utils.isDeprecated(pkg))) {
                      Content packageLinkContent = getPackageLink(pkg, getPackageName(pkg));
                      Content thPackage = HtmlTree.TH_ROW_SCOPE(HtmlStyle.colFirst, packageLinkContent);
                      HtmlTree tdSummary = new HtmlTree(HtmlTag.TD);
                      tdSummary.addStyle(HtmlStyle.colLast);
                      addSummaryComment(pkg, tdSummary);
                      HtmlTree tr = HtmlTree.TR(thPackage);
                      tr.addContent(tdSummary);
                      tr.addStyle(altColor ? HtmlStyle.altColor : HtmlStyle.rowColor);
                      tbody.addContent(tr);
                  }
              }
              altColor = !altColor;
          }
      }
docs: Adds list of packages in the index table. Generate link to each package.
  
  @param packages Packages to which link is to be generated
  @param tbody the documentation tree to which the list will be added