public Boolean parseBoolean(String val) {
		if ("true".equalsIgnoreCase(val) || "false".equalsIgnoreCase(val)) {
			return Boolean.parseBoolean(val);
		}
		throw new IllegalArgumentException("Invalid boolean: " + val);
	}
Parses a boolean from a string.

@param val The string to parse.
@return The boolean that was parsed from the string.
@throws IllegalArgumentException if the parsed value is not a valid boolean.
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java