private void OnItemSelected(object sender, NavigationBarItemSelectedEventArgs e)
        {
            AssertIsForeground();

            _waitIndicator.Wait(
                EditorFeaturesResources.Navigation_Bars,
                EditorFeaturesResources.Refreshing_navigation_bars,
                allowCancel: true,
                action: context => ProcessItemSelectionSynchronously(e.Item, context.CancellationToken));
        }
        private void OnItemSelected(object sender, NavigationBarItemSelectedEventArgs e)
        {
            AssertIsForeground();

            _waitIndicator.Wait(
                EditorFeaturesResources.Navigation_Bars,
                EditorFeaturesResources.Refreshing_navigation_bars,
                allowCancel: true,
                action: context => ProcessItemSelectionSynchronously(e.Item, context.CancellationToken));
        }