boolean (@NotNull DiffFragment beforeFragment, @NotNull DiffFragment afterFragment, int shift1, int shift2) { if (beforeFragment.getEndOffset1() != afterFragment.getStartOffset1() + shift1 || beforeFragment.getEndOffset2() != afterFragment.getStartOffset2() + shift2) { return false; } return true; }