private static boolean isBulkOperationInProgress(TreeExpansionEvent event) {
        return event instanceof TreeBulkExpansionEvent bulkEvent && bulkEvent.isBulkOperationInProgress();
      }
private static boolean isBulkOperationInProgress(TreeExpansionEvent event)