private static StringDiff createInsert(List<Line> lines, int insertIndex, boolean isAtEnd) {
		if (lines.isEmpty()) {
			return null;
		}

		StringBuilder buffy = new StringBuilder();

		// special case: if this insert is for the end of the line, then we want to add 
		//               a newline before the remaining text is added since the original text
		//               did not have this newline
		if (isAtEnd) {
			buffy.append('\n');
		}

		for (Line line : lines) {
			buffy.append(line.getText());
		}

		return StringDiff.textInserted(buffy.toString(), insertIndex);
	}
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