public boolean isEmpty() {
    List<Object> children = new ArrayList<>();
    collectChildren(myModel.getTreeStructure().getRootElement(), children);
    return children.isEmpty();
  }
public boolean isEmpty()