public static boolean containsOption(String optionName, List<Option> options) {
		return options.stream().anyMatch(o -> o.getName().equals(optionName));
	}
Checks to see whether or not the given list of options contains the given option name.

@param optionName The name of the option to check.
@param options A list of the all the options.
@return True if the given list contains the given option; otherwise, false.
Ghidra/Features/Base/src/main/java/ghidra/app/util/OptionUtils.java