function _createDocument(doc, editor) {
        var DocClass        = _classForDocument(doc),
            liveDocument    = new DocClass(doc, editor);

        if (!DocClass) {
            return null;
        }

        liveDocument.on("statusChanged.livedev", function () {
            _handleLiveDocumentStatusChanged(liveDocument);
        });

        return liveDocument;
    }
@private
Create a live version of a Brackets document
@param {Document} doc Current document
@param {Editor} editor Current editor
@return {?(HTMLDocument|CSSDocument)}