ItemPresentation () { return new ItemPresentation() { @Override public String getPresentableText() { return myText; } @Override public String getLocationString() { return '(' + myPsiElement.getContainingFile().getName() + ')'; } @Override public @Nullable Icon getIcon(boolean open) { return myIcon; } }; }