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