private ProperUndoStrategy(TextDocument document) { _document = document; _document.TextChanged += OnTextChanged; }