void (@NotNull AnActionEvent e) { final DataContext dataContext = e.getDataContext(); Project project = CommonDataKeys.PROJECT.getData(dataContext); e.getPresentation().setEnabled(project != null && !project.isDefault()); }