private boolean isValidAddress(Program program, Address address) {
		if (address == null) {
			return false;
		}
		if (!program.getMemory().contains(address)) {
			return false;
		}

		long offset = address.getOffset();
		if (offset == 0x0 || offset == 0xffffffff || offset == 0xffff || offset == 0xff) {
			return false;
		}

		return true;
	}
Check if this address could be a valid address in the program. 0 id not a valid address.

@param program program to check if address is valid within
@param address address in program to be checked
@return true if this is a valid address
Ghidra/Features/Base/src/main/java/ghidra/app/util/EolComments.java