void (@NotNull List<? extends SimpleDiffChange> changes, boolean isContentsEqual) { clear(); for (int i = 0; i < changes.size(); i++) { SimpleDiffChange change = changes.get(i); SimpleDiffChange previousChange = i != 0 ? changes.get(i - 1) : null; SimpleDiffChangeUi changeUi = myViewer.createUi(change); changeUi.installHighlighter(previousChange); myPresentations.add(changeUi); } myValidChanges.addAll(changes); myAllChanges.addAll(changes); myIsContentsEqual = ThreeState.fromBoolean(isContentsEqual); }