@Override
      public void caretPositionChanged(@NotNull CaretEvent e) {
        if (!UndoManager.getInstance(myProject).isUndoOrRedoInProgress()) {
          syncUpdateOnCaretMove();
          rescheduleUpdate();
        }
      }
@Override
      public void caretPositionChanged(@NotNull CaretEvent e)