public void close(DialogComponentProvider dialog) {
		if (dialog == null) {
			return;
		}
		runSwing(() -> dialog.close());
	}
Will try to close dialogs prompting for changes to be saved, whether from program changes
or from tool config changes.
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java