docs: public static void invokeAndWait(Runnable runnable) throws InvocationTargetException,
  			InterruptedException {
  		if (EventQueue.isDispatchThread()) {
  			runnable.run();
  		} else {
  			EventQueue.invokeAndWait(runnable);
  		}
  	}