public RefList checkRefListSize(DBObjectCache<RefList> cache, int newSpaceRequired)
			throws IOException {
		if (adapter != null && (getNumRefs() + newSpaceRequired) >= BIG_REFLIST_THRESHOLD) {
			cache.delete(getKey()); // remove smaller list from cache
			BigRefListV0 refList =
				new BigRefListV0(address, adapter, addrMap, program, cache, isFrom);
			refList.addRefs(getRefs());
			return refList;
		}
		return this;
	}
Check to see if RefList should be transitioned to a BigRefList.
A replacement RefList will be returned and the corresponding adapter record
updated if a transition is performed, otherwise the original
RefList is returned.
@param cache RefList object cache
@param newSpaceRequired number of references to be added.
@return original or replacement RefList
@throws IOException
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/references/RefList.java