private static void WriteSqaleDescriptorFile(string filePath, IEnumerable <SqaleDescriptor> sqaleDescriptions)
        {
            var root = new SqaleRoot();

            root.Sqale.AddRange(sqaleDescriptions
                                .Where(descriptor => descriptor != null));
            SerializeObjectToFile(filePath, root);
        }
        private static void WriteSqaleDescriptorFile(string filePath, IEnumerable <FullRuleDescriptor> fullRuleDescriptors)
        {
            var root = new SqaleRoot();

            foreach (var fullRuleDescriptor in fullRuleDescriptors
                     .Where(fullRuleDescriptor => fullRuleDescriptor.SqaleDescriptor != null))
            {
                root.Sqale.Add(fullRuleDescriptor.SqaleDescriptor);
            }

            SerializeObjectToFile(filePath, root);
        }