@Override
  public int getChildCount(Object object) {
    if (object instanceof AbstractTreeNode<?> && model.isValidThread()) {
      return ((AbstractTreeNode<?>)object).getChildren().size();
    }
    return 0;
  }
@Override
  public int getChildCount(Object object)