public static DialogComponentProvider showDialogWithoutBlocking(PluginTool tool,
			DialogComponentProvider provider) {

		executeOnSwingWithoutBlocking(() -> tool.showDialog(provider));

		// this call waits for the dialog to be shown
		DialogComponentProvider dialog = waitForDialogComponent(provider.getClass());
		waitForSwing();
		return dialog;
	}
Shows the given DialogComponentProvider using the given tool's
{@link PluginTool#showDialog(DialogComponentProvider)} method.

@param tool The tool used to show the given provider.
@param provider The DialogComponentProvider to show.
@return The provider once it has been shown, or null if the provider is not shown within
        the given maximum wait time.
Ghidra/Features/Base/src/main/java/ghidra/test/AbstractGhidraHeadedIntegrationTest.java