@Override
	synchronized Reference[] getAllRefs() throws IOException {
		Reference[] refs = new Reference[getNumRefs()];
		ReferenceIterator it = getRefs();
		for (int i = 0; i < refs.length; i++) {
			refs[i] = it.next();
		}
		return refs;
	}
Construct reference list for existing record
@param rec existing refList record
@param adapter entry record storage adapter
@param addrMap address map for encoding/decoding addresses
@param program associated Program
@param cache RefList object cache
@param isFrom true for from-adapter use, false for to-adapter use
@throws IOException if database IO error occurs
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/references/BigRefListV0.java