void (@NotNull AnActionEvent event) { final boolean enabled = isEnabled(event); event.getPresentation().setEnabled(enabled); if (ActionPlaces.isPopupPlace(event.getPlace())) { event.getPresentation().setVisible(enabled); } }