private boolean checkExternalReference(Navigatable navigatable, CodeUnit codeUnit,
			OperandFieldLocation loc, GoToService goToService) {

		Address refAddr = loc.getRefAddress();
		if (refAddr == null || !refAddr.isExternalAddress()) {
			return checkExternalThunkFunctionReference(navigatable, codeUnit, loc, goToService);
		}

		Program program = codeUnit.getProgram();
		Symbol s = program.getSymbolTable().getPrimarySymbol(refAddr);
		if (s == null) {
			return false;
		}

		ExternalLocation extLoc = program.getExternalManager().getExternalLocation(s);
		return goToService.goToExternalLocation(extLoc, true);
	}
A handler to process {@link OperandFieldLocation} mouse clicks.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/OperandFieldMouseHandler.java