public void moveProviderToFront(final ComponentProvider provider, int width, int height) {

		moveProviderToItsOwnWindow(provider, width, height);
		waitForSwing();

		runSwing(() -> {
			Window window = windowForComponent(provider.getComponent());
			window.toFront();
		});

	}
The same as {@link GhidraScreenShotGenerator#captureIsolatedProvider(Class, int, int)} except
this method will also capture the containing window.

@param clazz the provider class
@param width the width of the capture
@param height the height of the capture
Ghidra/Features/Base/src/main/java/help/screenshot/AbstractScreenShotGenerator.java