addComment abstract method
Adds a new comment anchored to nodeId from startOffset to endOffset.
Returns true if the comment was added, false if it overlaps an existing
comment on the same node (in which case the caller should show a warning).
Implementation
bool addComment(String nodeId, int startOffset, int endOffset, String author, String text);