private String getExternalName(Symbol s) {
		if (!s.isExternal()) {
			return null;
		}
		if (s.getSymbolType() == SymbolType.LIBRARY) {
			return s.getName();
		}
		Symbol parent = s.getParentSymbol();
		while (parent.getSymbolType() != SymbolType.GLOBAL) {
			if (parent.getSymbolType() == SymbolType.LIBRARY) {
				return parent.getName();
			}
			parent = parent.getParentSymbol();
		}
		return null;
	}
Get the ScreenElement corresponding to the type of the reference.
@param p the program
@param r the reference to inspect
@return the screen element
Ghidra/Features/Base/src/main/java/ghidra/app/util/SymbolInspector.java