private Promise<Void> applyToUiTree(@NotNull Command command, Node value) {
    return foreground.compute(() -> {
      command.applyToUiTree(value);
      return null;
    });
  }
private Promise<Void> applyToUiTree(@NotNull Command command, Node value)