DataNode<ProjectData> (ExternalSystemTaskId id, RemoteExternalSystemProjectResolver resolver, ExternalSystemExecutionSettings settings) { String title = ExternalSystemBundle.message("progress.refresh.text", myProjectName, getExternalSystemId().getReadableName()); Ref<DataNode<ProjectData>> projectRef = new Ref<>(); UnindexedFilesScannerExecutor.getInstance(getIdeProject()).suspendScanningAndIndexingThenRun(title, () -> { try { projectRef.set(resolver.resolveProjectInfo(id, myProjectPath, myIsPreviewMode, settings, myResolverPolicy)); } catch (RemoteException e) { throw new RuntimeException(e); } }); return projectRef.get(); }