void (@NotNull AnActionEvent e) { ProjectSystemId externalSystemId = e.getData(ExternalSystemDataKeys.EXTERNAL_SYSTEM_ID); if (externalSystemId == null) { return; } ExternalSystemManager<?, ?, ?, ?, ?> manager = ExternalSystemApiUtil.getManager(externalSystemId); if (manager == null) { return; } Project project = e.getProject(); if (project == null) { return; } ExternalSystemActionsCollector.trigger(project, externalSystemId, this, e); ProjectImportProvider projectImportProvider = ProjectImportProvider.PROJECT_IMPORT_PROVIDER .findFirstSafe(it -> it instanceof AbstractExternalProjectImportProvider && externalSystemId.equals(((AbstractExternalProjectImportProvider)it).getExternalSystemId())); if (projectImportProvider == null) { return; } ImportModuleAction.doImport(project, () -> ImportModuleAction.selectFileAndCreateWizard( project, null, getFileChooserDescriptor(manager, project, externalSystemId), getSelectedFileValidator(project, externalSystemId), projectImportProvider ) ); }