void (@NotNull SimpleDiffChange change, @NotNull final Side sourceSide) { if (!change.isValid()) return; Side outputSide = sourceSide.other(); boolean isLocalChangeRevert = sourceSide == Side.LEFT && isDiffForLocalChanges(); TextDiffViewerUtil.applyModification(getEditor(outputSide).getDocument(), change.getStartLine(outputSide), change.getEndLine(outputSide), getEditor(sourceSide).getDocument(), change.getStartLine(sourceSide), change.getEndLine(sourceSide), isLocalChangeRevert); myModel.destroyChange(change); }