code: public void addPackageName(PackageElement pkg, Content summariesTree, boolean first) {
          Content pkgNameContent;
          if (!first && configuration.allowTag(HtmlTag.SECTION)) {
              summariesTree.addContent(summaryTree);
          }
          if (pkg.isUnnamed()) {
              summariesTree.addContent(getMarkerAnchor(
                      SectionName.UNNAMED_PACKAGE_ANCHOR));
              pkgNameContent = contents.defaultPackageLabel;
          } else {
              String parsedPackageName = utils.parsePackageName(pkg);
              summariesTree.addContent(getMarkerAnchor(parsedPackageName));
              pkgNameContent = getPackageLabel(parsedPackageName);
          }
          Content headingContent = new StringContent(".*");
          Content heading = HtmlTree.HEADING(HtmlConstants.PACKAGE_HEADING, true,
                  pkgNameContent);
          heading.addContent(headingContent);
          if (configuration.allowTag(HtmlTag.SECTION)) {
              summaryTree = HtmlTree.SECTION(heading);
          } else {
              summariesTree.addContent(heading);
          }
      }
docs: {@inheritDoc}