code: protected void addClassListing(Content contentTree, int profileValue) {
          if (packageDoc.isIncluded()) {
              addClassKindListing(packageDoc.interfaces(),
                  getResource("doclet.Interfaces"), contentTree, profileValue);
              addClassKindListing(packageDoc.ordinaryClasses(),
                  getResource("doclet.Classes"), contentTree, profileValue);
              addClassKindListing(packageDoc.enums(),
                  getResource("doclet.Enums"), contentTree, profileValue);
              addClassKindListing(packageDoc.exceptions(),
                  getResource("doclet.Exceptions"), contentTree, profileValue);
              addClassKindListing(packageDoc.errors(),
                  getResource("doclet.Errors"), contentTree, profileValue);
              addClassKindListing(packageDoc.annotationTypes(),
                  getResource("doclet.AnnotationTypes"), contentTree, profileValue);
          }
      }
docs: Add class listing for all the classes in this package. Divide class
  listing as per the class kind and generate separate listing for
  Classes, Interfaces, Exceptions and Errors.
  
  @param contentTree the content tree to which the listing will be added
  @param profileValue the value of the profile being documented