void update(@NotNull List<? extends TextChange> changes) {
    BulkChangesMerger merger = BulkChangesMerger.INSTANCE;
    for (Map.Entry<Editor, Integer> entry : myCaretOffsets.entrySet()) {
      entry.setValue(merger.updateOffset(entry.getValue(), changes));
    }
  }
void update(@NotNull List<? extends TextChange> changes)