ItemPresentation () { return new ItemPresentation() { @Nullable @Override public String getPresentableText() { return myTemplate.getKey(); } @Nullable @Override public Icon getIcon(boolean unused) { return null; } }; }