private void formatDataTypeSettings(DataType dt) {
		Settings settings = dt.getDefaultSettings();
		SettingsDefinition[] defs =
			SettingsDefinition.filterSettingsDefinitions(dt.getSettingsDefinitions(), def -> {
				return (def instanceof TypeDefSettingsDefinition) && def.hasValue(settings);
			});
		if (defs.length == 0) {
			return;
		}
		insertString("\n\nSettings\n", sourceAttrs);
		for (SettingsDefinition def : defs) {
			insertString("  " + def.getName() + ": " + def.getValueString(settings) + "\n",
				contentAttrs);
		}
	}
Panel to show the contents of a Data Type.
Ghidra/Features/Base/src/main/java/ghidra/app/merge/datatypes/DataTypePanel.java