MenuItemPresentationFactory () { return new MenuItemPresentationFactory() { @Override protected void processPresentation(@NotNull Presentation presentation) { super.processPresentation(presentation); if (myNoIconsInPopup) { presentation.setIcon(null); presentation.setHoveredIcon(null); } } }; }