code: protected void addModifierAndType(ProgramElementDoc member, Type type,
              Content tdSummaryType) {
          HtmlTree code = new HtmlTree(HtmlTag.CODE);
          addModifier(member, code);
          if (type == null) {
              if (member.isClass()) {
                  code.addContent("class");
              } else {
                  code.addContent("interface");
              }
              code.addContent(writer.getSpace());
          } else {
              if (member instanceof ExecutableMemberDoc &&
                      ((ExecutableMemberDoc) member).typeParameters().length > 0) {
                  Content typeParameters = ((AbstractExecutableMemberWriter) this).getTypeParameters(
                          (ExecutableMemberDoc) member);
                      code.addContent(typeParameters);
                  //Code to avoid ugly wrapping in member summary table.
                  if (typeParameters.charCount() > 10) {
                      code.addContent(new HtmlTree(HtmlTag.BR));
                  } else {
                      code.addContent(writer.getSpace());
                  }
                  code.addContent(
                          writer.getLink(new LinkInfoImpl(configuration,
                          LinkInfoImpl.Kind.SUMMARY_RETURN_TYPE, type)));
              } else {
                  code.addContent(
                          writer.getLink(new LinkInfoImpl(configuration,
                          LinkInfoImpl.Kind.SUMMARY_RETURN_TYPE, type)));
              }
  
          }
          tdSummaryType.addContent(code);
      }
docs: Add the modifier and type for the member in the member summary.
  
  @param member the member to add the type for
  @param type the type to add
  @param tdSummaryType the content tree to which the modified and type will be added