public static void runSwing(Runnable r) {
		runSwing(r, true);
	}
Run the given code snippet on the Swing thread and wait for it to finish
@param r the runnable code snippet
Ghidra/Framework/Gui/src/main/java/generic/test/AbstractGuiTest.java