public static SemanticModel GetSutSemanticModel(SemanticModel testSemanticModel, ISymbol suitableSutSymbol, Location sutFirstLocation) { var compilation = testSemanticModel.GetCompilation(suitableSutSymbol); var sutSemanticModel = compilation?.GetSemanticModel(sutFirstLocation.SourceTree); return sutSemanticModel; }