internal static SerializableNamingStylePreferencesInfo FromXElement(XElement namingPreferencesInfoElement)
        {
            var namingPreferencesInfo = new SerializableNamingStylePreferencesInfo();

            namingPreferencesInfo.SetSymbolSpecificationListFromXElement(namingPreferencesInfoElement.Element(nameof(SymbolSpecifications)));
            namingPreferencesInfo.SetNamingStyleListFromXElement(namingPreferencesInfoElement.Element(nameof(NamingStyles)));
            namingPreferencesInfo.SetNamingRuleTreeFromXElement(namingPreferencesInfoElement.Element(nameof(NamingRules)));

            return(namingPreferencesInfo);
        }
        internal static SerializableNamingStylePreferencesInfo FromXElement(XElement namingPreferencesInfoElement)
        {
            var namingPreferencesInfo = new SerializableNamingStylePreferencesInfo();

            var serializationVersion = int.Parse(namingPreferencesInfoElement.Attribute("SerializationVersion").Value);

            if (serializationVersion != s_serializationVersion)
            {
                namingPreferencesInfoElement = XElement.Parse(SimplificationOptions.NamingPreferences.DefaultValue);
            }

            namingPreferencesInfo.SetSymbolSpecificationListFromXElement(namingPreferencesInfoElement.Element(nameof(SymbolSpecifications)));
            namingPreferencesInfo.SetNamingStyleListFromXElement(namingPreferencesInfoElement.Element(nameof(NamingStyles)));
            namingPreferencesInfo.SetNamingRuleTreeFromXElement(namingPreferencesInfoElement.Element(nameof(NamingRules)));

            return(namingPreferencesInfo);
        }
        internal static SerializableNamingStylePreferencesInfo FromXElement(XElement namingPreferencesInfoElement)
        {
            var namingPreferencesInfo = new SerializableNamingStylePreferencesInfo();

            var serializationVersion = int.Parse(namingPreferencesInfoElement.Attribute("SerializationVersion").Value);
            if (serializationVersion != s_serializationVersion)
            {
                namingPreferencesInfoElement = XElement.Parse(SimplificationOptions.NamingPreferences.DefaultValue);
            }

            namingPreferencesInfo.SetSymbolSpecificationListFromXElement(namingPreferencesInfoElement.Element(nameof(SymbolSpecifications)));
            namingPreferencesInfo.SetNamingStyleListFromXElement(namingPreferencesInfoElement.Element(nameof(NamingStyles)));
            namingPreferencesInfo.SetNamingRuleTreeFromXElement(namingPreferencesInfoElement.Element(nameof(NamingRules)));

            return namingPreferencesInfo;
        }
        internal static SerializableNamingStylePreferencesInfo FromXElement(XElement namingPreferencesInfoElement)
        {
            var namingPreferencesInfo = new SerializableNamingStylePreferencesInfo();

            namingPreferencesInfo.SetSymbolSpecificationListFromXElement(namingPreferencesInfoElement.Element(nameof(SymbolSpecifications)));
            namingPreferencesInfo.SetNamingStyleListFromXElement(namingPreferencesInfoElement.Element(nameof(NamingStyles)));
            namingPreferencesInfo.SetNamingRuleTreeFromXElement(namingPreferencesInfoElement.Element(nameof(NamingRules)));

            return namingPreferencesInfo;
        }