void (@NotNull AnActionEvent e) { Project project = e.getProject(); boolean enable = project != null && !RecentProjectListActionProvider.getInstance().getActions(false).isEmpty(); e.getPresentation().setEnabledAndVisible(enable); }