private Reference getSomeRef(Reference[] myRefs, Reference[] latestRefs) {
		if (myRefs.length > 0) {
			return myRefs[0];
		}
		else if (latestRefs.length > 0) {
			return latestRefs[0];
		}
		return null;
	}
@param program
@param fromAddress
@param operandIndex
@return
Ghidra/Features/Base/src/main/java/ghidra/app/merge/listing/ReferenceMerger.java