Returns true if this annotation covers the given global offset in the fragment identified by nodeId.
bool covers(String id, int offset) { return id == nodeId && offset >= startOffset && offset < endOffset; }