@Override
    public synchronized void invokeLater(@NotNull Runnable r) {
      ApplicationManager.getApplication().invokeLater(r, myModalityState);
    }
@Override
    public synchronized void invokeLater(@NotNull Runnable r)