public Diff(Source controlSource, Source testSource, ComparisonFormatter formatter, Iterable<Difference> differences) { this.controlSource = controlSource; this.testSource = testSource; this.formatter = formatter; this.differences = differences; for (Difference d : differences) { d.setComparisonFormatter(formatter); } }