void (@NotNull Project project) { ImportSpecBuilder previewSpec = new ImportSpecBuilder(project, GradleConstants.SYSTEM_ID); previewSpec.usePreviewMode(); previewSpec.use(MODAL_SYNC); previewSpec.callback(new ConfigureGradleModuleCallback(previewSpec)); ExternalSystemUtil.refreshProject(PathKt.getSystemIndependentPath(rootProjectPath), previewSpec); }