public static Set<Address> findDirectReferences(Program program, int alignment,
			Address toAddress, TaskMonitor monitor) throws CancelledException {

		return findDirectReferences(program, (List<MemoryBlock>) null, alignment, toAddress,
			monitor);
	}
Checks a programs memory for direct references to the address indicated.
Direct references are only found at addresses that match the indicated alignment. 

@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 monitor a task monitor for progress or to allow canceling.
@return list of addresses referring directly to the toAddress

@throws CancelledException if the user cancels via the monitor.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMemoryUtil.java