private Symbol getLabelSymbol(ProgramLocation programLocation) {
		if (!enabled || programLocation == null) {
			return null;
		}

		if (!(programLocation instanceof LabelFieldLocation)) {
			return null;
		}

		Symbol symbol = ((LabelFieldLocation) programLocation).getSymbol();
		if (symbol == null) {
			return null;
		}

		return symbol;
	}
A hover service to show the full namespace path of a symbol along with its symbol type and
source type.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/hover/LabelListingHover.java