See https://github.com/dotnet/roslyn/pull/61231#discussion_r869759735. We should consider using reflection instead of pulling the types in manually.