public void markupArrayElementReferences(Address arrayAddr, int elementSize,
			List<Address> targetAddrs) throws IOException {
		if (!targetAddrs.isEmpty()) {
			ReferenceManager refMgr = program.getReferenceManager();

			for (Address targetAddr : targetAddrs) {
				if (targetAddr != null) {
					refMgr.addMemoryReference(arrayAddr, targetAddr, RefType.DATA,
						SourceType.IMPORTED, 0);
				}
				arrayAddr = arrayAddr.add(elementSize);
			}
		}
	}
Creates references from each element of an array to a list of target addresses.

@param arrayAddr the address of the start of the array
@param elementSize the size of each array element
@param targetAddrs list of addresses that will receive references from each array elements
@throws IOException if error
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/structmapping/MarkupSession.java