public IMouseProcessor GetAssociatedProcessor(IWpfTextView view)
        {
            if (App.OptionsPage?.DisableShiftClick == null)
            {
                return(null);
            }

            var buffer = view.TextBuffer;

            IOleCommandTarget shellCommandDispatcher = GetShellCommandDispatcher(view);

            if (shellCommandDispatcher == null)
            {
                return(null);
            }

            return(new GoToModuleMouseHandler(
                       (DTE2)GlobalServiceProvider.GetService(typeof(SDTE)),
                       view,
                       shellCommandDispatcher,
                       AggregatorFactory.GetClassifier(buffer),
                       NavigatorService.GetTextStructureNavigator(buffer),
                       CtrlKeyState.GetStateForView(view)));
        }
 public KeyProcessor GetAssociatedProcessor(IWpfTextView view)
 {
     return(view.Properties.GetOrCreateSingletonProperty(typeof(GoToModuleKeyProcessor),
                                                         () => new GoToModuleKeyProcessor(CtrlKeyState.GetStateForView(view))));
 }