@Override
    public void invokeAndWait(@NotNull Runnable task) throws InvocationTargetException, InterruptedException {
      EventQueue.invokeAndWait(task);
    }
@Override
    public void invokeAndWait(@NotNull Runnable task)