code: protected void addClassKindListing(ClassDoc[] arr, Content labelContent,
              Content contentTree, int profileValue) {
          if(arr.length > 0) {
              Arrays.sort(arr);
              boolean printedHeader = false;
              HtmlTree ul = new HtmlTree(HtmlTag.UL);
              ul.setTitle(labelContent);
              for (int i = 0; i < arr.length; i++) {
                  if (!isTypeInProfile(arr[i], profileValue)) {
                      continue;
                  }
                  if (!Util.isCoreClass(arr[i]) || !
                          configuration.isGeneratedDoc(arr[i])) {
                      continue;
                  }
                  if (!printedHeader) {
                      Content heading = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING,
                              true, labelContent);
                      contentTree.addContent(heading);
                      printedHeader = true;
                  }
                  Content arr_i_name = new StringContent(arr[i].name());
                  if (arr[i].isInterface()) arr_i_name = HtmlTree.SPAN(HtmlStyle.interfaceName, arr_i_name);
                  Content link = getLink(new LinkInfoImpl(configuration,
                          LinkInfoImpl.Kind.PACKAGE_FRAME, arr[i]).label(arr_i_name).target("classFrame"));
                  Content li = HtmlTree.LI(link);
                  ul.addContent(li);
              }
              contentTree.addContent(ul);
          }
      }
docs: Add specific class kind listing. Also add label to the listing.
  
  @param arr Array of specific class kinds, namely Class or Interface or Exception or Error
  @param labelContent content tree of the label to be added
  @param contentTree the content tree to which the class kind listing will be added
  @param profileValue the value of the profile being documented