@Override
	public byte getReferenceLevel(Address toAddr) {
		if (refs(false) == null) {
			return SymbolUtilities.UNK_LEVEL;
		}
		byte highest = SymbolUtilities.UNK_LEVEL;
		for (long s : program.viewport.getOrderedSnaps()) {
			for (TraceReference ref : refs.getReferencesTo(s, toAddr)) {
				highest = (byte) Math.max(highest, getRefLevel(ref.getReferenceType()));
			}
		}
		return highest;
	}
{@inheritDoc}

<p>
To clarify, "reference level" is a sort of priority assigned to each reference type. See,
e.g., {@link SymbolUtilities#SUB_LEVEL}. Each is a byte constant, and greater values imply
higher priority. This method returns the highest priority of any reference to the given
address.

<p>
TODO: Track this in the database?
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/program/AbstractDBTraceProgramViewReferenceManager.java