public async Task <XElement> ProvideAsync(ICoverageProject coverageProject)
        {
            var settingsElement = ProjectSettingsElementFromFCCLabelledPropertyGroup(coverageProject);

            if (settingsElement == null)
            {
                settingsElement = await vsBuildFCCSettingsProvider.GetSettingsAsync(coverageProject.Id);
            }
            return(settingsElement);
        }
        private bool?GetUseDataCollectorElement()
        {
            var useDataCollector = GetUseDataCollectorFromProjectFile();

            if (!useDataCollector.HasValue)
            {
                ThreadHelper.JoinableTaskFactory.Run(async() =>
                {
                    var importedSettings = await vsBuildFCCSettingsProvider.GetSettingsAsync(coverageProject.Id);
                    if (importedSettings != null)
                    {
                        useDataCollector = UseDataCollector(importedSettings);
                    }
                });
            }

            return(useDataCollector);
        }