private void validateOptionType(Option option, OptionType type) {

		if (type == option.getOptionType() || type == OptionType.NO_TYPE) {
			return;
		}

		throw new IllegalStateException(
			"Expected option type: " + type + ", but was type: " + option.getOptionType());
	}
Sets the name for this Options object.  Used when updating old options names to new names.
@param newName the new name for this options object.
Ghidra/Framework/Gui/src/main/java/ghidra/framework/options/AbstractOptions.java