List<Module> (Project project, ModifiableModuleModel model, ModulesProvider modulesProvider, ModifiableArtifactModel artifactModel) { var projectFile = getProjectFileToImport(); if (null == projectFile) { LOG.warn("Project file missing"); return List.of(); } IdeUIModifiableModelsProvider modelsProvider = null; if (model != null) { modelsProvider = new IdeUIModifiableModelsProvider(project, model, (ModulesConfigurator)modulesProvider, artifactModel); } return new MavenProjectAsyncBuilder().commitSync(project, projectFile, modelsProvider); }