return line;
}
int addOn = 0;
for (int i = 0; i < myChanges.length; i++) {
Change change = myChanges[i];
if (line < change.getSrcLine()) {
break;
}
addOn += change.getInserted();
addOn -= change.getDeleted();
}
int result = Math.max(line + addOn, 0);
if (myDestLines != null) {
return Math.min(myDestLines.length - 1, result);