@Override
  public void execute(@NotNull Runnable command) {
    Application app = ApplicationManager.getApplication();
    if (app == null) {
      EventQueue.invokeLater(command);
    }
    else {
      app.invokeLater(command, ModalityState.any());
    }
  }
@Override
  public void execute(@NotNull Runnable command)