void (final RefEntity entity, @NotNull StringBuilder buf) { RefEntity owner = entity.getOwner(); if (owner instanceof RefPackage) { buf.append(JavaBundle.message("inspection.export.results.package")); buf.append(HTMLComposerImpl.NBSP).append(HTMLComposerImpl.CODE_OPENING); buf.append(RefJavaUtil.getInstance().getPackageName(entity)); buf.append(HTMLComposerImpl.CODE_CLOSING); } else if (owner instanceof RefMethod) { buf.append(AnalysisBundle.message("inspection.export.results.method")); buf.append(HTMLComposerImpl.NBSP); myComposer.appendElementReference(buf, (RefElement)owner); } else if (owner instanceof RefField) { buf.append(AnalysisBundle.message("inspection.export.results.field")); buf.append(HTMLComposerImpl.NBSP); myComposer.appendElementReference(buf, (RefElement)owner); buf.append(HTMLComposerImpl.NBSP); buf.append(AnalysisBundle.message("inspection.export.results.initializer")); } else if (owner instanceof RefClass) { appendClassOrInterface(buf, (RefClass)owner, false); buf.append(HTMLComposerImpl.NBSP); myComposer.appendElementReference(buf, (RefElement)owner); } }