@Override
	public void putObject(String optionName, Object newValue) {
		if (newValue == null) {

			if (isNullable(optionName)) {
				// set the value of the option to null, effectively clearing the option
				putObject(optionName, null, OptionType.NO_TYPE);
				return;
			}

			throw new IllegalArgumentException("Attempted to put a null value in an option " +
				"that does not support null values. If you wanted to removethe option, call " +
				"removeOption() instead!");
		}

		if (!isSupportedType(newValue)) {
			throw new IllegalArgumentException(
				"Attempted to store an object that is not supported by Options: " +
					newValue.getClass());
		}
		putObject(optionName, newValue, OptionType.getOptionType(newValue));
	}
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