void (@NotNull SimpleThreesideDiffChange change, @NotNull ThreeSide sourceSide, @NotNull ThreeSide outputSide) { if (!change.isValid()) return; DiffUtil.applyModification(getEditor(outputSide).getDocument(), change.getStartLine(outputSide), change.getEndLine(outputSide), getEditor(sourceSide).getDocument(), change.getStartLine(sourceSide), change.getEndLine(sourceSide)); myDiffChanges.remove(change); myInvalidDiffChanges.add(change); change.markInvalid(); // Do not rely on DocumentListener in case of identical change scheduleRediff(); }