private byte getRefLevel(DBRecord newRec) {
		try {
			RefList refList = new RefListV0(newRec, this, addrMap, null, null, false);
			Reference[] refs = refList.getAllRefs();
			byte refLevel = (byte) -1;
			for (Reference ref : refs) {
				byte level = RefListV0.getRefLevel(ref.getReferenceType());
				if (level > refLevel) {
					refLevel = level;
				}
			}
			return refLevel;
		}
		catch (IOException e) {
			throw new RuntimeException("IOException unexpected for ToAdapterV0 RefList");
		}
	}
To change the template for this generated type comment go to
Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/references/ToAdapterV0.java