code: public void addLinkToPackageContent(PackageDoc pkg, String parsedPackageName,
              Set<String> printedPackageHeaders, Content contentListTree) {
          String packageName = pkg.name();
          //add link to summary
          Content link;
          if (packageName.length() == 0) {
              link = getHyperLink(getDocLink(
                      SectionName.UNNAMED_PACKAGE_ANCHOR),
                      defaultPackageLabel, "", "");
          } else {
              Content packageNameContent = getPackageLabel(parsedPackageName);
              packageNameContent.addContent(".*");
              link = getHyperLink(DocLink.fragment(parsedPackageName),
                      packageNameContent, "", "");
              printedPackageHeaders.add(parsedPackageName);
          }
          contentListTree.addContent(HtmlTree.LI(link));
      }
docs: {@inheritDoc}