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