private boolean isStringInProgramMemory(String string) {

		byte[] byteArrray = string.getBytes();

		Address findBytes = currentProgram.getMemory()
				.findBytes(currentProgram.getMinAddress(), byteArrray, null, true, monitor);
		if (findBytes != null) {
			return true;
		}
		return false;
	}
Method to create a string containing a C++-like representation of the given class
@param recoveredClass the given class
@return string containing a C++-like representation of the given class
@throws CancelledException if cancelled
Ghidra/Features/Decompiler/ghidra_scripts/RecoverClassesFromRTTIScript.java