public static void registerAction(JComponent component, DockingAction action,
			ActionContextProvider contextProvider) {
		KeyStroke keyBinding = action.getKeyBinding();
		registerAction(component, keyBinding, new ActionAdapter(action, contextProvider),
			JComponent.WHEN_FOCUSED);
	}
A convenience method to register the given action with the given
component. This is not usually done, as the action system is usually
managed by the application's tool. However, for actions that are not
registered with a tool, they can instead be bound to a component, hence
this method.
<p>
The given action must have a keystroke assigned, or this method will do
nothing.

<p>
A typical use-case is to register an existing docking action with a text
component, which is needed because the docking key event processing will
not execute docking- registered actions if a text component has focus.

@param component the component to which the given action will be bound
@param action the action to bind
@param contextProvider the provider of the context
Ghidra/Framework/Docking/src/main/java/docking/actions/KeyBindingUtils.java