public <T extends Plugin> T getPlugin(Class<T> c) {
		return AbstractGhidraHeadlessIntegrationTest.getPlugin(lazyTool(), c);
	}
Closes the given tool.  This method is asynchronous, so you must wait for the Swing thread
to perform the work yourself.  Watch out for modal dialogs.
@param toolToClose The tool to close.
Ghidra/Features/Base/src/main/java/ghidra/test/TestEnv.java