public static void pressButton(AbstractButton button, boolean waitForCompletion) {
		Runnable r = () -> button.doClick(0); // 0 means no sleeping
		runSwing(r, waitForCompletion);
	}
Programmatically presses the indicated button.

@param button the button
@param waitForCompletion if true wait for action to complete before
           returning, otherwise schedule action to be performed and
           return immediately.
Ghidra/Framework/Gui/src/main/java/generic/test/AbstractGuiTest.java