protected void closeAndReopenGhidra_WithGUI(PluginTool tool, boolean willPrompt,
			boolean saveIfPrompted) {

		closeAndReopenProject();

		// we will get the dialog to save in the middle of the process
		if (willPrompt) {
			JDialog dialog = getOldStyleSaveChangesDialog(tool);
			assertNotNull(dialog);
			if (saveIfPrompted) {
				pressSave(dialog);
			}
			else {
				pressDontSave(dialog);
			}
		}
	}
A test that outlines and tests the expected saving action of tools that are closed.  Normally,
a tool will save itself when closed, but sometimes it cannot.  This test class verifies these
conditions.
Ghidra/Features/Base/src/test.slow/java/ghidra/framework/project/tool/AbstractToolSavingTest.java