void (@NotNull AnActionEvent event) { Presentation presentation = event.getPresentation(); Project project = getProject(event); boolean enabled = project != null && !TaskManager.getManager(project).getActiveTask().isDefault(); presentation.setEnabled(enabled); }