public void updateAndSortChildren() {
    if (isSorted()) return;
    update();
    TreeUtil.listChildren(this).forEach(node -> {
      if (node instanceof PackageDependenciesNode packageDependenciesNode) {
        packageDependenciesNode.update();
      }
    });
    sortChildren();
  }
public void updateAndSortChildren()