void (@NotNull AnActionEvent e) { super.update(e); if (ActionPlaces.isPopupPlace(e.getPlace())) { Presentation presentation = e.getPresentation(); presentation.setVisible(presentation.isEnabled()); } }