code: public Content getContentsList(DeprecatedAPIListBuilder deprapi) {
          Content headContent = contents.deprecatedAPI;
          Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, true,
                  HtmlStyle.title, headContent);
          Content div = HtmlTree.DIV(HtmlStyle.header, heading);
          Content headingContent = contents.contentsHeading;
          div.addContent(HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, true,
                  headingContent));
          Content ul = new HtmlTree(HtmlTag.UL);
          for (DeprElementKind kind : DeprElementKind.values()) {
              addIndexLink(deprapi, kind, ul);
          }
          div.addContent(ul);
          return div;
      }
docs: Get the contents list.
  
  @param deprapi the deprecated list builder
  @return a content tree for the contents list