public static void registerAction(JComponent component, DockingAction action) {
		KeyStroke keyBinding = action.getKeyBinding();
		registerAction(component, keyBinding, new ActionAdapter(action), 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.

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