void (@NotNull AnActionEvent event) { Presentation presentation = event.getPresentation(); presentation.setEnabled(isEnabled(event)); presentation.setVisible(presentation.isEnabled() || !ActionPlaces.isPopupPlace(event.getPlace())); }