private static String shorten(String domainPath) {
		String[] splits = domainPath.split("/");
		StringBuilder sb = new StringBuilder();
		for (int ii = splits.length - 1; ii >= 0; --ii) {
			sb.insert(0, splits[ii]);
			if (ii != 0) {
				sb.insert(0, "/");
			}
			if (sb.length() >= MAGIC_MAXIMUM_LENGTH) {
				break;
			}
		}
		String result = sb.toString();
		if (result.length() < domainPath.length()) {
			result = "..." + result;
		}
		return result;
	}
Shortens a domain path to make it as readable as possible without flying off the screen.
@param domainPath the string to shorten
@return a shortened string
Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/debug/FidFunctionDebugPanel.java