@Override
  public void onBatchModeFinish(@NotNull Editor editor) {
    if (myEditor.getDocument().isInBulkUpdate()) return;
    doWithCaretMerging(() -> {
      for (CaretImpl caret : myCarets) {
        caret.resetCachedState();
        caret.myVisualColumnAdjustment = 0;
        caret.updateVisualPosition();
      }
    });
  }
@Override
  public void onBatchModeFinish(@NotNull Editor editor)