public static void copyTypeDefSettings(TypeDef src, TypeDef dest, boolean clearBeforeCopy) {
		if (clearBeforeCopy) {
			Settings settings = dest.getDefaultSettings();
			settings.clearAllSettings();
		}

		Settings otherSettings = src.getDefaultSettings();
		if (otherSettings.isEmpty()) {
			return;
		}

		Settings settings = dest.getDefaultSettings();
		for (TypeDefSettingsDefinition def : dest.getTypeDefSettingsDefinitions()) {
			def.copySetting(otherSettings, settings);
		}
	}
Copy all default settings , which correspond to a TypeDefSettingsDefinition,
from the specified src TypeDef to the specified dest TypeDef.
@param src settings source TypeDef
@param dest settings destination TypeDef
@param clearBeforeCopy if true dest default settings will be cleared before copy performed
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/TypedefDataType.java