private static List <SectionEntity> ExtractEntitiesSections(LUFileParser.FileContext fileContext)
        {
            if (fileContext == null)
            {
                return(new List <SectionEntity>());
            }

            var aux                = fileContext.paragraph();
            var entitySections     = fileContext.paragraph().Select(x => x.entitySection()).Where(x => x != null && x.entityDefinition() != null);
            var entitySectionsList = entitySections.Select(x => new SectionEntity(x)).ToList();

            return(entitySectionsList);
        }
        private static List <QnaSection> ExtractQnaSections(LUFileParser.FileContext fileContext)
        {
            if (fileContext == null)
            {
                return(new List <QnaSection>());
            }

            var qnaSections     = fileContext.paragraph().Select(x => x.qnaSection()).Where(x => x != null);
            var qnaSectionsList = qnaSections.Select(x => new QnaSection(x)).ToList();

            return(qnaSectionsList);
        }
        private static List <ImportSection> ExtractImportSections(LUFileParser.FileContext fileContext)
        {
            if (fileContext == null)
            {
                return(new List <ImportSection>());
            }

            var importSections     = fileContext.paragraph().Select(x => x.importSection()).Where(x => x != null);
            var importSectionsList = importSections.Select(x => new ImportSection(x)).ToList();

            return(importSectionsList);
        }
        private static List <NewEntitySection> ExtractNewEntitiesSections(LUFileParser.FileContext fileContext)
        {
            if (fileContext == null)
            {
                return(new List <NewEntitySection>());
            }

            var newEntitySections     = fileContext.paragraph().Select(x => x.newEntitySection()).Where(x => x != null && x.newEntityDefinition() != null);
            var newEntitySectionsList = newEntitySections.Select(x => new NewEntitySection(x)).ToList();

            return(newEntitySectionsList);
        }
        private static List <SimpleIntentSection> ExtractSimpleIntentSections(LUFileParser.FileContext fileContext)
        {
            if (fileContext == null)
            {
                return(new List <SimpleIntentSection>());
            }

            var simpleIntentSections     = fileContext.paragraph().Select(x => x.simpleIntentSection()).Where(x => x != null && x.intentDefinition() != null);
            var simpleIntentSectionsList = simpleIntentSections.Select(x => new SimpleIntentSection(x)).ToList();

            return(simpleIntentSectionsList);
        }