private void beginBulkOperation() {
      bulkOperationsInProgress.incrementAndGet();
      var ui = getUI();
      if (ui instanceof TreeUiBulkExpandCollapseSupport bulk) {
        bulk.beginBulkOperation();
      }
    }
private void beginBulkOperation()