private boolean isAllowedSetting(String settingName) {
		if (dataMgr instanceof ProgramBasedDataTypeManager) {
			// any setting permitted within a program DTM
			return true;
		}
		// non-TypeDefSettingsDefinition settings are not permitted in non-program DTM
		// since they will be discarded during resolve and ignored for equivalence checks
		for (TypeDefSettingsDefinition def : getTypeDefSettingsDefinitions()) {
			if (def.getStorageKey().equals(settingName)) {
				return true;
			}
		}
		return false;
	}
Construct TypeDefDB instance
@param dataMgr datatype manager
@param cache DataTypeDB cache
@param adapter TypeDef record adapter
@param record TypeDefDB record
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/TypedefDB.java