void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); Project project = e.getData(CommonDataKeys.PROJECT); if (ActionPlaces.isMainMenuOrActionSearch(e.getPlace())) { presentation.setDescription(ExecutionBundle.messagePointer("choose.run.configuration.action.description")); } try { if (project == null || project.isDisposed() || !project.isOpen() || RunManager.IS_RUN_MANAGER_INITIALIZED.get(project) != Boolean.TRUE) { updatePresentation(null, null, null, presentation, e.getPlace()); presentation.setEnabled(false); } else { updatePresentation(getSelectedExecutionTarget(e), getSelectedConfiguration(e), project, presentation, e.getPlace()); presentation.setEnabled(true); } } catch (IndexNotReadyException e1) { presentation.setEnabled(false); } }