public PluginTool launchTool(String toolName, DomainFile domainFile) {
		AtomicReference<PluginTool> ref = new AtomicReference<>();

		AbstractGuiTest.runSwing(() -> {
			PluginTool newTool = doLaunchTool(toolName);
			ref.set(newTool);
			if (newTool != null && domainFile != null) {
				newTool.acceptDomainFiles(new DomainFile[] { domainFile });
			}
		});

		PluginTool launchedTool = ref.get();
		if (launchedTool == null) {
			throw new NullPointerException("Unable to launch the tool: " + toolName);
		}

		// this will make sure that our tool is closed during disposal
		extraTools.add(launchedTool);
		return launchedTool;
	}
Launches a tool of the given name using the given domain file.
<p>
Note: the tool returned will have auto save disabled by default.

@param toolName the name of the tool to launch
@param domainFile The domain file used to launch the tool; may be null
@return the tool that is launched
Ghidra/Features/Base/src/main/java/ghidra/test/TestEnv.java