private void generateDefaultPackageDoc(StringBuilder buffer, PsiPackage aPackage, boolean generatePrologue) {
    if (generatePrologue) generatePrologue(buffer);
    HtmlBuilder hb = new HtmlBuilder();
    hb.append(HtmlChunk.tag("h3").addText(JavaBundle.message("package.classes")));
    Comparator<PsiClass> comparator = Comparator.comparing(PsiClass::getName, Comparator.nullsLast(Comparator.naturalOrder()));
    Arrays.stream(aPackage.getClasses()).sorted(comparator).forEach(psiClass -> {
      String link = generateLink(psiClass, psiClass.getName());
      if (link != null) {
        hb.append(HtmlChunk.tag("div")
                    .children(
                      HtmlChunk.tag("icon").attr("src", getIcon(psiClass)),
                      HtmlChunk.nbsp(),
                      HtmlChunk.raw(link)
                    ));
      }
    });
    buffer.append(hb);
    buffer.append(DocumentationMarkup.SECTIONS_END);
  }
private void generateDefaultPackageDoc(StringBuilder buffer, PsiPackage aPackage, boolean generatePrologue)