static String escapeAnnotationPart(String s) {
		s = Objects.requireNonNullElse(s, "");
		String origStr = s;
		if (s.indexOf('"') >= 0) {
			s = s.replace("\"", "\\\"");
		}
		if (origStr != s || s.indexOf('}') != -1 || s.indexOf(' ') != -1) {
			s = "\"" + s + "\"";
		}
		return s;
	}
Escape a string that is intended to be used as a annotated string portion.
<p>
Quotes are escaped, '}' and ' ' are placed inside quotes. 
 
@param s string to escape
@return escaped string
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/AnnotatedStringHandler.java