public static void loadDirectReferenceList(Program program, int alignment, Address toAddress,
			AddressSetView toAddressSet, List<ReferenceAddressPair> directReferenceList,
			TaskMonitor monitor) throws CancelledException {
		Accumulator<ReferenceAddressPair> accumulator = new ListAccumulator<>();
		loadDirectReferenceList(program, alignment, toAddress, toAddressSet, accumulator, monitor);
		directReferenceList.addAll(accumulator.get());
	}
Checks a programs memory for direct references to the addresses indicated in the toAddressSet.
Direct references are only found at addresses that match the indicated alignment. Each
direct reference is added to the directReferenceList as a from/to address pair.

@param program the program whose memory is to be checked.
@param alignment direct references are to only be found at the indicated alignment in memory.
@param toAddress address that we are interested in finding references to.
@param toAddressSet address set indicating the addresses that we are interested in 
		  finding directly referred to in memory. 
		  Null if only interested in finding references to the toAddress.
@param directReferenceList the list to be populated with possible direct references
@param monitor a task monitor for progress or to allow cancelling.
@throws CancelledException if the user cancels via the monitor.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMemoryUtil.java