@SuppressWarnings("unchecked")
	private void setEnum(Options options, String analysisOption, String analysisOptionValue) {

		@SuppressWarnings("rawtypes")
		Enum enumm = options.getEnum(analysisOption, null);
		if (enumm == null) {
			throw new IllegalStateException(
				"Attempted to set an Enum option without an " + "existing enum value alreday set.");
		}

		@SuppressWarnings({ "rawtypes" })
		Enum newEnumm = Enum.valueOf(enumm.getClass(), analysisOptionValue);
		if (newEnumm != null) {
			options.setEnum(analysisOption, newEnumm);
		}
	}
Private method, returns any error message that may have resulted from attempting to set
the given analysis option to the given analysis value.

@param options  the options for which analysisOption should be set to
			analysisOptionValue
@param analysisOption	the option to be changed
@param analysisOptionValue	the value to be set for the option
@return  a String description of any errors that occurred during setting of options; if
		empty String is returned, no problems occurred.
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java