void (@NotNull AnActionEvent event) { if (!LanguageImportStatements.INSTANCE.hasAnyExtensions()) { event.getPresentation().setVisible(false); return; } Presentation presentation = event.getPresentation(); boolean available = isActionAvailable(event); if (ActionPlaces.isPopupPlace(event.getPlace())) { presentation.setEnabledAndVisible(available); } else { presentation.setEnabled(available); } }