private void AddBaseTypesForAffectedTypes()
 {
     foreach (var affectedClass in AffectedTypes.ToList())
     {
         ClassDiagram.GetBaseTypes(affectedClass).ToList().ForEach(baseType =>
         {
             AffectedTypes.Add(baseType);
             Edges.Add(new AffectedEdge(affectedClass, baseType, Edge.Inheritance));
         });
     }
 }
 private void AddSubTypesOverridingMethodsInAffectedTypes()
 {
     foreach (var affectedClass in AffectedTypes.ToList())
     {
         ClassDiagram.GetSubTypesOverridingAnyMethodsIn(affectedClass).ToList().ForEach(type =>
         {
             AffectedTypes.Add(type);
             Edges.Add(new AffectedEdge(type, affectedClass, Edge.IndirectSubtype));
         });
     }
 }