ItemPresentation () { return new ItemPresentation() { @Override public @NotNull String getPresentableText() { return StringUtil.shortenTextWithEllipsis(getTextValue(), 20, 0, true); } @Override public @NotNull String getLocationString() { return getContainingFile().getName(); } @Override public @NotNull Icon getIcon(boolean unused) { return AllIcons.Nodes.Variable; } }; }