private Reference[] getAssociatedReferences(Symbol s) {
		ReferenceManager refManager = s.getProgram().getReferenceManager();
		ReferenceIterator iter = refManager.getReferencesTo(s.getAddress());
		ArrayList<Reference> list = new ArrayList<>();
		while (iter.hasNext()) {
			Reference ref = iter.next();
			if (s.getID() == ref.getSymbolID()) {
				list.add(ref);
			}
		}
		Reference[] refs = new Reference[list.size()];
		return list.toArray(refs);
	}
Get memory references associated with a specific symbolID at a specific address.
@param addr symbol address
@param symbolID symbol ID
@return memory references associated with symbol
Ghidra/Features/Base/src/test.slow/java/ghidra/app/cmd/label/DeleteLabelCmdTest.java