public static String indentLines(String s, String indent) {
		String[] lines = toLines(s, false);
		StringBuilder buffy = new StringBuilder();
		for (String line : lines) {
			buffy.append(indent).append(line).append('\n');
		}

		if (buffy.length() > 0) {
			// trim off last newline so as not to add something that was not part of the
			// original string
			buffy.deleteCharAt(buffy.length() - 1);
		}

		return buffy.toString();
	}
Splits the given string into lines using <code>\n</code> and then pads each string with the
given pad string. Finally, the updated lines are formed into a single string.
<p>
This is useful for constructing complicated <code>toString()</code> representations.

@param s the input string
@param indent the indent string; this will be appended as needed
@return the output string
Ghidra/Framework/Generic/src/main/java/ghidra/util/StringUtilities.java