void (@NotNull AnActionEvent e) { super.update(e); Presentation presentation = e.getPresentation(); ActionPresentation actionPresentation = myAction.getPresentation(); if (!e.isFromContextMenu() && presentation.getClientProperty(MenuItemPresentationFactory.HIDE_ICON) == null) { presentation.setIcon(actionPresentation.getIcon()); } presentation.setText(actionPresentation.getText()); }