code: protected void addIndex(Content body) {
          addIndexContents(packages, "doclet.Package_Summary",
                  configuration.getText("doclet.Member_Table_Summary",
                  configuration.getText("doclet.Package_Summary"),
                  configuration.getText("doclet.packages")), body);
      }
docs: Adds the frame or non-frame package index to the documentation tree.
  
  @param body the document tree to which the index will be added