void (CharSequence upToDateContent, CharSequence currentContent, Range[] expected) { List<Range> result = RangesBuilder.createRanges(new DocumentImpl(currentContent), new DocumentImpl(upToDateContent)); LineStatusTrackerTestUtil.assertEqualRanges(result, Arrays.asList(expected)); }