@Override
	protected ProgramLocation getLocation(NavigatableActionContext context) {
		if (!(context instanceof DecompilerActionContext)) {
			return null;
		}
		return context.getLocation();
	}
An action to show all references to the given address
Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/FindReferencesToAddressAction.java