public static MethodMappings createSavedMethodMappings(this O2MappedAstData astData, Dictionary <string, List <KeyValuePair <INode, IMethodOrProperty> > > mappings)
        {
            //"creating SavedMethodMappings object from {0} mappings".info(mappings.size());
            var savedMethodMappings = new MethodMappings();

            foreach (var mapping in mappings)
            {
                try
                {
                    string key = mapping.Key;
                    var    methodMappingItem = new MethodMappingItem()
                    {
                        Key = key
                    };
                    List <KeyValuePair <INode, IMethodOrProperty> > items = mapping.Value;
                    foreach (var keyValuePair in items)
                    {
                        var iNode             = keyValuePair.Key;
                        var iMethodOrProperty = keyValuePair.Value;
                        methodMappingItem.MethodMappings.Add(astData.methodMapping(iMethodOrProperty, iNode, key));
                    }
                    savedMethodMappings.MethodMappingItems.Add(methodMappingItem);
                }
                catch (Exception ex)
                {
                    ex.log("in createSavedMethodMappings");
                }
            }
            return(savedMethodMappings);
        }
        public static MethodMapping methodMapping(this O2MappedAstData astData, IMethodOrProperty iMethodOrProperty, INode iNode, string key)
        {
            string parentMethod = astData.parentMethodSignature(iNode);
            string parentClass  = astData.parentClassSignature(iNode);

            return(astData.methodMapping(iMethodOrProperty.fullName(), key, parentMethod, parentClass, iNode));
        }