void (@NotNull Document document) { isInsideBulkDocumentUpdate = false; if (isInsideBulkUpdate()) { return; } final Caret currentPrimaryCaret = myEditor.getCaretModel().getPrimaryCaret(); primaryCaretPositionPossiblyChanged(currentPrimaryCaret); }