@Override
  public void appendLocation(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);
      String name = RefJavaUtil.getInstance().getPackageName(entity);
      assert name != null;
      // name for default package: <default>
      buf.append(XmlStringUtil.escapeString(name));
      buf.append(HTMLComposerImpl.CODE_CLOSING);
    }
    else if (owner instanceof RefMethod) {
      myComposer.appendElementReference(buf, (RefElement)owner, false);
    }
    else if (owner instanceof RefField) {
      myComposer.appendElementReference(buf, (RefElement)owner, false);
      buf.append(HTMLComposerImpl.NBSP);
      buf.append(AnalysisBundle.message("inspection.export.results.initializer"));
    }
    else if (owner instanceof RefClass) {
      myComposer.appendElementReference(buf, (RefElement)owner, false);
    }
  }
@Override
  public void appendLocation(final RefEntity entity, @NotNull StringBuilder buf)