private static void checkDataType(DataType dt) {
		DataTypeManager dtm = dt.getDataTypeManager();
		if (dtm instanceof BuiltInDataTypeManager) {
			throw new IllegalArgumentException(
				"Unsupported use for datatype from BuiltInDataTypeManager");
		}
		if (dtm instanceof DataTypeManagerDB) {
			long id = dtm.getID(dt);
			if (id > 0) {
				// FIXME: this does not handle re-mapped BuiltIn datatypes
				// since multiple instances may be defined
				if (dt == dtm.getDataType(id)) {
					return; // valid original instance
				}
			}
		}
		throw new IllegalArgumentException("Invalid data type instance");
	}
Construct for structure component default settings
@param dtc data type component (must belong to program-resolved structure)
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/data/DataTypeSettingsDialog.java