private ScalarSearchDialog launchScalarSearchDialog(Program customProgram, AddressSet selection)
			throws Exception {

		tool = env.launchDefaultTool(customProgram);
		tool.addPlugin(ScalarSearchPlugin.class.getName());
		plugin = env.getPlugin(ScalarSearchPlugin.class);

		if (selection != null) {
			makeSelection(tool, customProgram, selection);
		}

		DockingActionIf action = getAction(plugin, "Search for Scalars");
		waitForSwing();
		CodeBrowserPlugin cb = env.getPlugin(CodeBrowserPlugin.class);
		CodeViewerProvider cbp = cb.getProvider();
		performAction(action, cbp, false);

		ScalarSearchDialog dialog = waitForDialogComponent(ScalarSearchDialog.class);
		return dialog;
	}
Opens the given program and the scalar search dialog, executing a search for scalars
within the program. Optionally filters search results using the min/max values.

@param customProgram the program to search
@param selection address set to use for program selection; can be null
@param min minimum filter value
@param max maximum filter value
@throws Exception
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/scalartable/ScalarSearchTest.java