code: public Content deprecatedTagOutput(Doc doc) {
          ContentBuilder result = new ContentBuilder();
          Tag[] deprs = doc.tags("deprecated");
          if (doc instanceof ClassDoc) {
              if (utils.isDeprecated((ProgramElementDoc) doc)) {
                  result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                          new StringContent(configuration.getText("doclet.Deprecated"))));
                  result.addContent(RawHtml.nbsp);
                  if (deprs.length > 0) {
                      Tag[] commentTags = deprs[0].inlineTags();
                      if (commentTags.length > 0) {
                          result.addContent(commentTagsToOutput(null, doc,
                              deprs[0].inlineTags(), false)
                          );
                      }
                  }
              }
          } else {
              MemberDoc member = (MemberDoc) doc;
              if (utils.isDeprecated((ProgramElementDoc) doc)) {
                  result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                          new StringContent(configuration.getText("doclet.Deprecated"))));
                  result.addContent(RawHtml.nbsp);
                  if (deprs.length > 0) {
                      Content body = commentTagsToOutput(null, doc,
                          deprs[0].inlineTags(), false);
                      if (!body.isEmpty())
                          result.addContent(HtmlTree.SPAN(HtmlStyle.deprecationComment, body));
                  }
              } else {
                  if (utils.isDeprecated(member.containingClass())) {
                      result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                              new StringContent(configuration.getText("doclet.Deprecated"))));
                      result.addContent(RawHtml.nbsp);
                  }
              }
          }
          return result;
      }
docs: {@inheritDoc}