@Override
	protected boolean isEnabledForContext(ListingActionContext context) {
		LocationDescriptor descriptor = getDescriptor(context);
		if (descriptor == null) {
			return false;
		}

		updateMenuName(descriptor);

		return true;
	}
{@link LocationReferencesPlugin}'s action for finding references to a thing.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/navigation/locationreferences/FindReferencesToAction.java