Callback to check if a node is in scope (provided by state)
final bool Function(String? nodeId, String scopeId)? isNodeInScope;