UsagePresentation () { return new UsagePresentation() { @Override public TextChunk @NotNull [] getText() { return new TextChunk[]{new TextChunk(SimpleTextAttributes.REGULAR_ATTRIBUTES.toTextAttributes(), getPlainText())}; } @NotNull @Override public @NlsSafe String getPlainText() { PsiMember element = getElement(); if (element == null) return ""; return StringUtil.notNullize(element.getName()); } @Override public Icon getIcon() { PsiMember element = getElement(); if (element == null) return null; return element.getIcon(0); } @Override public String getTooltipText() { return getPlainText(); } }; }