@Before public void setUp() { myMerger = new BulkChangesMerger(); }
private 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)); } }
public void update(@Nonnull List<? extends TextChange> changes) { BulkChangesMerger merger = BulkChangesMerger.INSTANCE; for (Map.Entry<Editor, Integer> entry : myCaretOffsets.entrySet()) { entry.setValue(merger.updateOffset(entry.getValue(), changes)); } }