private static void FindDependencies(string methodName)
        {
            var depens       = UnityEventReferenceFinder.FindAllUnityEventsReferences();
            var onlyWithName = new List <EventReferenceInfo>();

            foreach (var d in depens)
            {
                if (d.MethodNames.Where(m => m.ToLower().Contains(methodName.ToLower())).Count() > 0)
                {
                    var indexes = d.MethodNames.Where(n => n.ToLower().Contains(methodName.ToLower())).Select(n => d.MethodNames.IndexOf(n)).ToArray();

                    var info = new EventReferenceInfo();
                    info.Owner = d.Owner;

                    foreach (var i in indexes)
                    {
                        info.Listeners.Add(d.Listeners[i]);
                        info.MethodNames.Add(d.MethodNames[i]);
                    }

                    onlyWithName.Add(info);
                }
            }

            dependencies = onlyWithName.Count > 0 ? onlyWithName : depens;
        }
 private static void FindDependencies()
 {
     dependencies = UnityEventReferenceFinder.FindAllUnityEventsReferences();
 }