LineNumberConvertor (@NotNull DiffIterable iterable) { LineNumberConvertor.Builder builder = new LineNumberConvertor.Builder(); for (Pair<Range, Boolean> pair : DiffIterableUtil.iterateAll(iterable)) { Range range = pair.first; builder.put(range.start1, range.start2, range.end1 - range.start1, range.end2 - range.start2); } return builder.build(); }