public static OptionType getOptionType(Object obj) {
		if (obj == null) {
			return NO_TYPE;
		}
		Class<? extends Object> objClass = obj.getClass();
		for (OptionType type : values()) {
			if (type == NO_TYPE) {
				continue;
			}
			if (type.clazz.isAssignableFrom(objClass)) {
				return type;
			}
		}
		return OptionType.NO_TYPE;
	}
Return true if the give value is of the correct type for this option type. Note that a
value of null is compatible with any class type
since it is an acceptable value for any class type.
@param object the object to see if it is compatible with this option type
@return true if the give value is of the correct type for this option type.
Ghidra/Framework/Gui/src/main/java/ghidra/framework/options/OptionType.java