void (RefElement element, @NotNull StringBuilder buf, Set<? super RefElement> mentionedElements, boolean appendCallees) { final Set<RefElement> possibleChildren = getPossibleChildren(element); if (!possibleChildren.isEmpty()) { if (appendCallees){ appendHeading(buf, JavaBundle.message("inspection.export.results.callees")); buf.append("<div class=\"problem-description\">"); } @NonNls final String ul = "<ul>"; buf.append(ul); for (RefElement refElement : possibleChildren) { if (!mentionedElements.contains(refElement)) { mentionedElements.add(refElement); @NonNls final String li = "<li>"; buf.append(li); appendElementReference(buf, refElement, true); @NonNls final String closeLi = "</li>"; buf.append(closeLi); appendCallersList(refElement, buf, mentionedElements, false); } } @NonNls final String closeUl = "</ul>"; buf.append(closeUl); if (appendCallees) { buf.append("</div>"); } } }