private static List<Line> split(String s) {

		LinkedList<Line> result = new LinkedList<>();
		List<String> lines = Arrays.asList(StringUtils.splitPreserveAllTokens(s, '\n'));
		int start = 0;
		for (String line : lines) {
			Line l = new Line(line + '\n', start);
			result.add(l);
			start += l.text.length();
		}

		if (result.isEmpty()) {
			result.add(new Line("", 0));
		}

		Line last = result.peekLast();
		last.markAsLast(); // this will signal to remove the trailing newline for the last line

		return result;
	}
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