void (@NotNull CaretEvent event) { if (isInsideBulkUpdate()) { return; } final Caret changedCaret = event.getCaret(); final Caret currentPrimaryCaret = myEditor.getCaretModel().getPrimaryCaret(); if (changedCaret != currentPrimaryCaret) { // Filter out changes of secondary carets return; } primaryCaretPositionPossiblyChanged(currentPrimaryCaret); }