private List<Program> getOpenProgamsFor(PluginTool theTool) {
		//@formatter:off
		List<Program> toolPrograms = programManager.getOpenPrograms()
			.stream()
			.filter(p -> p.getConsumerList().contains(theTool))
			.collect(Collectors.toList())
			;
		//@formatter:on

		return toolPrograms;
	}
Closes the TestEnv's default tool.  This method is asynchronous, so you
must wait for the Swing thread to perform the work yourself.
Watch out for modal dialogs.
Ghidra/Features/Base/src/main/java/ghidra/test/TestEnv.java