ItemPresentation () { return new ItemPresentation() { @Override public @NotNull String getPresentableText() { return getStringValue(); } @Nullable @Override public String getLocationString() { String packageForFile = PyElementPresentation.getPackageForFile(getContainingFile()); return packageForFile != null ? String.format("(%s)", packageForFile) : null; } @Override public @NotNull Icon getIcon(boolean unused) { return AllIcons.Nodes.Variable; } }; }