@SuppressWarnings("unchecked")
	public static <T> T getOption(String optionName, List<Option> options, T defaultValue) {
		if (options != null) {
			for (Option option : options) {
				if (option.getName().equals(optionName)) {
					return (T) option.getValue();
				}
			}
		}
		return defaultValue;
	}
Gets the value of the option with the given name from the given list of options.

@param optionName The name of the 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 value of the option with the given name, or the default value if it was not 
  found.
Ghidra/Features/Base/src/main/java/ghidra/app/util/OptionUtils.java