private static void doFlush(boolean doFlush, AbstractSwingUpdateManager manager) {
		if (!doFlush) {
			return;
		}

		runSwing(() -> {
			manager.flush();
		}, false);
		yieldToSwing();
	}
Waits for the Swing thread to process any pending events. This method
also waits for any {@link SwingUpdateManager}s that have pending events
to be flushed.

@return true if the any {@link SwingUpdateManager}s were busy.
Ghidra/Framework/Gui/src/main/java/generic/test/AbstractGuiTest.java