private void createActions() {
		int subGroupPosition = 0;
		referencesToAction = new FindReferencesToAction(this, subGroupPosition);
		referencesToAction.setHelpLocation(helpLocation);
		tool.addAction(referencesToAction);

		subGroupPosition++;
		referencesToAddressAction = new FindReferencesToAddressAction(this, subGroupPosition);
		tool.addAction(referencesToAddressAction);

		//
		// Unusual Code: This plugin does not use the delete action directly, but our transient
		//               tables do. We need a way to have keybindings shared for this action.
		//               Further, we need to register it now, not when the transient
		//               providers are created, as they would only appear in the options at
		//               that point.
		//
		DeleteTableRowAction.registerDummy(tool, getName());

		// Note: the following action has no access (no menu path, no key binding, etc.) It exists
		// only so the user can bind a key binding to it if they wish.
		new ActionBuilder("Show Xrefs", getName())
				.description("Show the Xrefs to the code unit containing the cursor")
				.withContext(ListingActionContext.class)
				.helpLocation(new HelpLocation("CodeBrowserPlugin", "Show_Xrefs"))
				.onAction(context -> showXrefs(context))
				.buildAndInstall(tool);

	}
Plugin to show a list of references to the item represented by the location of the cursor.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/navigation/locationreferences/LocationReferencesPlugin.java