private static StringDiff createDelete(List<Line> lines, boolean includeLastNewline) {
		if (lines.isEmpty()) {
			return null;
		}

		int start = 0;
		int end = 0;
		for (Line line : lines) {
			start = line.start;
			end = line.start + line.text.length();
		}

		// special case: if this delete is for the last line, then we want to remove the remaining
		//               trailing newline
		Line last = lines.get(lines.size() - 1);
		if (!includeLastNewline && last.isLastLine) {
			start -= 1; // remove previous newline
		}

		return StringDiff.textDeleted(start, end);
	}
Returns the list of StringDiff objects that if applied to s1 would result in s2;  The
given text will look only for whole lines using '\n'.

@param s1 the original string
@param s2 the result string
       this value, then a completely different string will be returned
@return an array of StringDiff objects that change s1 into s2;
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/StringDiffUtils.java