/// <summary> /// Collects all reference. /// </summary> static void CollectAllReference() { allReferenceInfo.Clear(); foreach (var component in allComponents) { allReferenceInfo.AddRange(ObjectCollector.FindReferenceInfo(component)); } }