private Symbol getSymbol(ProgramLocation rowObject, Program program)
			throws IllegalArgumentException {
		if (rowObject == null) {
			// this can happen when a bookmark is deleted and we use a mapping column that can no
			// longer find the bookmark for the BookmarkRowObject
			return null;
		}

		ProgramLocation location = rowObject;
		if (rowObject instanceof VariableLocation) {
			Variable var = ((VariableLocation) rowObject).getVariable();
			if (var != null) {
				return var.getSymbol();
			}
		}
		Address address = location.getAddress();
		SymbolTable symbolTable = program.getSymbolTable();

		return symbolTable.getPrimarySymbol(address);
	}
This table column displays the Label for either the program location or the address
associated with a row in the table.
Ghidra/Features/Base/src/main/java/ghidra/util/table/field/LabelTableColumn.java