public static boolean isValidAddress(Program program, Address address) {
		if (address == null) {
			throw new IllegalArgumentException("address cannot be null.");
		}
		return program.getMemory().getLoadedAndInitializedAddressSet().contains(address);
	}
Determines if the specified address is a valid address in the program's memory.
@param program the program to check.
@param address the address to check.
@return true if the address is valid address in memory.
Ghidra/Features/MicrosoftCodeAnalyzer/src/main/java/ghidra/app/cmd/data/EHDataTypeUtilities.java