boolean (int oldLine1, int oldLine2, int shift, @NotNull ThreeSide side) { int line1 = getStartLine(side); int line2 = getEndLine(side); int sideIndex = side.getIndex(); DiffUtil.UpdatedLineRange newRange = DiffUtil.updateRangeOnModification(line1, line2, oldLine1, oldLine2, shift); myLineStarts[sideIndex] = newRange.startLine; myLineEnds[sideIndex] = newRange.endLine; return newRange.damaged; }