public static Component clickComponentProvider(ComponentProvider provider) {

		JComponent component = provider.getComponent();
		DockableComponent dockableComponent = getDockableComponent(component);
		selectTabIfAvailable(dockableComponent);
		Rectangle bounds = component.getBounds();
		int centerX = (bounds.x + bounds.width) >> 1;
		int centerY = (bounds.y + bounds.height) >> 1;

		return clickComponentProvider(provider, MouseEvent.BUTTON1, centerX, centerY, 1, 0, false);
	}
Performs a single left mouse click in the center of the given provider.  This is
useful when trying to  make a provider the active provider, while making sure
that one of the provider's components has focus.

@param provider The provider to click
@return the actual Java JComponent that was clicked.
@see #clickComponentProvider(ComponentProvider, int, int, int, int, int, boolean)
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java