private boolean isSupportedBySaveState(Object obj) {
		if (obj == null) {
			return false;
		}
		if (obj instanceof Enum) {
			return true;
		}
		if (obj instanceof byte[]) {
			return true;
		}
		return PRIMITIVE_CLASSES.contains(obj.getClass());

	}
Return an XML element for the option names and values.
Note: only those options which have been explicitly set
will be included.

@param includeDefaultBindings true to include default key binding values in the xml
@return the xml root element
Ghidra/Framework/Gui/src/main/java/ghidra/framework/options/ToolOptions.java