void (@NotNull StringBuilder buf, RefEntity refEntity) { if (refEntity == null) return; StringBuilder qName = new StringBuilder(); while (!(refEntity instanceof RefProject)) { if (qName.length() > 0) qName.insert(0, "."); String name = null; if (refEntity instanceof RefElement) { final HTMLComposerExtension extension = getLanguageExtension((RefElement)refEntity); if (extension != null) { name = extension.getQualifiedName(refEntity); } } if (name == null) { name = refEntity.getName(); } qName.insert(0, name); if (Comparing.strEqual(refEntity.getName(), refEntity.getQualifiedName())) { buf.append(qName); return; } refEntity = refEntity.getOwner(); } buf.append(qName); }