List<Node<T>> inputsInDepthIntersection(Node<T>? other) { var l2 = other?.inputsInDepth(); if (l2 == null || l2.isEmpty) return []; var l1 = inputsInDepth(); return l1.intersection(l2); }