public static boolean getBooleanOptionValue(String optionName, List<Option> options,
			boolean defaultValue) {

		if (options != null) {
			for (Option option : options) {
				if (option.getName().equals(optionName)) {
					Object val = option.getValue();
					if (val instanceof Boolean) {
						return (Boolean) option.getValue();
					}
				}
			}
		}
		return defaultValue;
	}
Gets the boolean value of the option with the given name from the given list of options.

@param optionName The name of the boolean option to get.
@param options The list of options to get the option from.
@param defaultValue A default option value to use if the option name was not found.
@return The boolean value of the option with the given name, or the default value if it was 
  not found as a boolean option.
Ghidra/Features/Base/src/main/java/ghidra/app/util/OptionUtils.java