static boolean equivalentReferenceArrays(Program pgm1, Program pgm2, Reference[] refs1,
			Reference[] refs2) {
		if (refs1 == refs2) {
			return true;
		}
		if (refs1 == null || refs2 == null) {
			return false;
		}

		int length = refs1.length;
		if (refs2.length != length) {
			return false;
		}

		for (int i = 0; i < length; i++) {
			Reference ref1 = refs1[i];
			Reference ref2 = refs2[i];
			if (!(ref1 == null ? ref2 == null : equivalentReferences(pgm1, pgm2, ref1, ref2))) {
				return false;
			}
		}

		return true;
	}
Compares an array of references from program1 with an array of references from program2 to see if they are equivalent.
@param pgm1 program1
@param pgm2 program2
@param refs1 program1 array of references
@param refs2 program2 array of references
@return true if the arrays of references are equal.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramDiff.java