Move isInsideComment to CobraParsedDocument