public void Dispose()
 {
     Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread();
     Controller.UndoManager.Close(UndoUnit, 1);
     Controller.EndGuiChange();
 }
 public void Dispose()
 {
     Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread();
     Controller?.EndGuiChange();
 }