ItemPresentation () { return new ItemPresentation() { @Override public String getPresentableText() { return myResourceBundle.isValid() ? myResourceBundle.getBaseName() : null; } @Override public Icon getIcon(boolean open) { return AllIcons.FileTypes.Properties; } }; }