Checks if this annotation depends on a specific node.
Returns true if the node ID is in the annotation's dependencies.
bool hasDependency(String nodeId) { return _dependencies.contains(nodeId); }