private void calculateMinimumAddressTableSize(Program program) {
		minimumAddressTableSize =
			AddressTable.getThresholdRunOfValidPointers(program, AddressTable.BILLION_CASES);

		if (minimumAddressTableSize < 2) {
			minimumAddressTableSize = 2;
		}
	}
Check operand references to memory locations looking for
Data
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/OperandReferenceAnalyzer.java