@Override
	protected void doGetReferences(Accumulator<LocationReference> accumulator, TaskMonitor monitor)
			throws CancelledException {

		// Note: we don't use 'fieldName' of the union, as we have no way of disambiguating which
		//       field a reference will point to. So, grab all references.
		ReferenceUtils.findDataTypeReferences(accumulator, union, program, useDynamicSearching,
			monitor);
	}
A location descriptor to find references to a Union data type.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/navigation/locationreferences/UnionLocationDescriptor.java