public static IEnumerable<IDependency> GetGroupDependencies(TreeContext context, IFilterGroup filterGroup)
 {
     var inGroupTokens = context.GetInGroupTokens(filterGroup);
     var groupDependencies = inGroupTokens
         .SelectMany(x => context.Store.Providers[x].Dependencies)
         .Concat(context.GetInGroupFilters(filterGroup).SelectMany(x => x.Dependencies))
         .Concat(filterGroup.GroupDependencies)
         .Where(dependency => !inGroupTokens.Contains(dependency.Token))
         .DistinctDependencies()
         .ToList();
     return groupDependencies;
 }
        public static IEnumerable <IDependency> GetGroupDependencies(TreeContext context, IFilterGroup filterGroup)
        {
            var inGroupTokens     = context.GetInGroupTokens(filterGroup);
            var groupDependencies = inGroupTokens
                                    .SelectMany(x => context.Store.Providers[x].Dependencies)
                                    .Concat(context.GetInGroupFilters(filterGroup).SelectMany(x => x.Dependencies))
                                    .Concat(filterGroup.GroupDependencies)
                                    .Where(dependency => !inGroupTokens.Contains(dependency.Token))
                                    .DistinctDependencies()
                                    .ToList();

            return(groupDependencies);
        }