void (@NotNull AnActionEvent e) { final Project project = e.getProject(); if (project == null) { e.getPresentation().setEnabled(false); return; } final List<ProjectSystemId> systemIds = getSystemIds(e); if (systemIds.isEmpty()) { e.getPresentation().setEnabled(false); return; } // We save all documents because there is a possible case that there is an external system config file changed inside the ide. FileDocumentManager.getInstance().saveAllDocuments(); if (ExternalSystemUtil.confirmLoadingUntrustedProject(project, systemIds)) { for (ProjectSystemId externalSystemId : systemIds) { ExternalSystemActionsCollector.trigger(project, externalSystemId, this, e); ExternalSystemUtil.refreshProjects(new ImportSpecBuilder(project, externalSystemId)); } } }