/// <summary>
 /// This method is executed when action is selected in the context menu
 /// </summary>
 public void Invoke()
 {
     if (dictionary != null && Keyboard.Modifiers == ModifierKeys.Control)
     {
         dictionary.ReplaceAllOccurrences(span.GetText(span.TextBuffer.CurrentSnapshot), replaceWith);
     }
     else
     {
         span.TextBuffer.Replace(span.GetSpan(span.TextBuffer.CurrentSnapshot), replaceWith);
     }
 }