void (int startLine, int endLine, int shift, boolean synchronous) { int oldLength = endLine - startLine; int newLength = oldLength + shift; if (synchronous) { int oldSlaveStart = convert(startLine, true, false); assert oldSlaveStart != -1; myChanges.add(new CorrectedChange(startLine, oldSlaveStart, oldLength, newLength)); } else { myChanges.add(new CorrectedChange(startLine, oldLength, newLength)); } }