public final DataType[] getDataTypes(String name) {
		ArrayList<DataType> list = new ArrayList<>();
		currentProgram.getDataTypeManager().findDataTypes(name, list);
		DataType[] dtarr = new DataType[list.size()];
		list.toArray(dtarr);
		return dtarr;
	}
Searches through the datatype manager of the current program and
returns an array of datatypes that match the specified name.
The datatype manager supports datatypes of the same name in different categories.
A zero-length array indicates that no datatypes with the specified name exist.
@param name the name of the desired datatype
@return an array of datatypes that match the specified name
Ghidra/Features/Base/src/main/java/ghidra/program/flatapi/FlatProgramAPI.java