public <T extends DataType> T getTypeOrDefault(String name, Class<T> clazz, T defaultValue) {
		T result = getType(name, clazz);
		return result != null ? result : defaultValue;
	}
Returns a named {@link DataType}, searching the registered
{@link #addProgramSearchCategoryPath(CategoryPath...) program}
and {@link #addArchiveSearchCategoryPath(CategoryPath...) archive} category paths.
<p>
DataTypes that were found in the attached archive gdt manager will be copied into the
program's data type manager before being returned.

@param <T> DataType or derived type
@param name {@link DataType} name
@param clazz expected DataType class
@param defaultValue value to return if the requested data type was not found
@return DataType or {@code defaultValue} if not found
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/structmapping/DataTypeMapper.java