private void createActions() {
		new ActionBuilder(SEARCH_DIRECT_REFS_ACTION_NAME, getName())
				.menuPath(ToolConstants.MENU_SEARCH, "For Direct References")
				.menuGroup("search for", "DirectReferences")
				.helpLocation(new HelpLocation(HelpTopics.SEARCH, SEARCH_DIRECT_REFS_ACTION_NAME))
				.description(getPluginDescription().getDescription())
				.withContext(ListingActionContext.class, true)
				.inWindow(ActionBuilder.When.CONTEXT_MATCHES)
				.onAction(this::findReferences)
				.enabledWhen(this::hasCorrectAddressSize)
				.buildAndInstall(tool);

	}
Plugin to find all possible references to the address at the
current cursor location.  A reference is some set of bytes that
when treated as an address would be the address of the current
cursor location.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/FindPossibleReferencesPlugin.java