O(n) lookup by stable ID.
UiNode? findByStableId(String id) { for (final n in nodes) { if (n.stableId == id) return n; } return null; }