code: protected void generateDeprecatedListFile(DeprecatedAPIListBuilder deprapi)
              throws DocFileIOException {
          HtmlTree body = getHeader();
          HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN))
                  ? HtmlTree.MAIN()
                  : body;
          htmlTree.addContent(getContentsList(deprapi));
          String memberTableSummary;
          HtmlTree div = new HtmlTree(HtmlTag.DIV);
          div.addStyle(HtmlStyle.contentContainer);
          for (DeprElementKind kind : DeprElementKind.values()) {
              if (deprapi.hasDocumentation(kind)) {
                  addAnchor(deprapi, kind, div);
                  memberTableSummary
                          = resources.getText("doclet.Member_Table_Summary",
                                  resources.getText(getHeadingKey(kind)),
                                  resources.getText(getSummaryKey(kind)));
                  List<String> memberTableHeader = new ArrayList<>();
                  memberTableHeader.add(resources.getText(getHeaderKey(kind)));
                  memberTableHeader.add(resources.getText("doclet.Description"));
                  addDeprecatedAPI(deprapi.getSet(kind),
                              getHeadingKey(kind), memberTableSummary, memberTableHeader, div);
              }
          }
          if (configuration.allowTag(HtmlTag.MAIN)) {
              htmlTree.addContent(div);
              body.addContent(htmlTree);
          } else {
              body.addContent(div);
          }
          htmlTree = (configuration.allowTag(HtmlTag.FOOTER))
                  ? HtmlTree.FOOTER()
                  : body;
          addNavLinks(false, htmlTree);
          addBottom(htmlTree);
          if (configuration.allowTag(HtmlTag.FOOTER)) {
              body.addContent(htmlTree);
          }
          printHtmlDocument(null, true, body);
      }
docs: Generate the deprecated API list.
  
  @param deprapi list of deprecated API built already.
  @throws DocFileIOException if there is a problem writing the deprecated list