static List<TreeNode<K>> deselectAll<K>(List<TreeNode<K>> nodes) { return replaceNodes(nodes, (node) { return node.updateState(selected: false); }); }