@Override
  public void validate(Content content, final ActiveRunnable toRestore) {
    final TabInfo current = tabs.getSelectedInfo();
    tabs.getPresentation().setPaintBlocked(true, true);

    select(content, false).doWhenDone(() -> {
      tabs.getComponent().validate();
      toRestore.run().doWhenDone(() -> {
        assert current != null;
        tabs.select(current, true);
        tabs.getPresentation().setPaintBlocked(false, true);
      });
    });
  }
@Override
  public void validate(Content content, final ActiveRunnable toRestore)