}
public static DiffFragment[][] splitByUnchangedLines(DiffFragment[] fragments) {
List2D result = new List2D();
for (int i = 0; i < fragments.length; i++) {
DiffFragment fragment = fragments[i];
if (!fragment.isEqual()) {
result.add(fragment);
continue;
}
String text1 = fragment.getText1();
String text2 = fragment.getText2();
if (StringUtil.endsWithChar(text1, '\n') && StringUtil.endsWithChar(text2, '\n')) {
result.add(fragment);
result.newRow();
continue;
}