code: private void addSummary(MemberSummaryWriter writer,
              VisibleMemberMap visibleMemberMap, boolean showInheritedSummary,
              Content memberSummaryTree) {
          LinkedList<Content> summaryTreeList = new LinkedList<>();
          buildSummary(writer, visibleMemberMap, summaryTreeList);
          if (showInheritedSummary)
              buildInheritedSummary(writer, visibleMemberMap, summaryTreeList);
          if (!summaryTreeList.isEmpty()) {
              Content memberTree = writer.getMemberSummaryHeader(
                      classDoc, memberSummaryTree);
              for (Content aSummaryTreeList : summaryTreeList) {
                  memberTree.addContent(aSummaryTreeList);
              }
              writer.addMemberTree(memberSummaryTree, memberTree);
          }
      }
docs: Add the summary for the documentation.
  
  @param writer the writer for this member summary.
  @param visibleMemberMap the map for the members to document.
  @param showInheritedSummary true if inherited summary should be documented
  @param memberSummaryTree the content tree to which the documentation will be added