Find ToImmutable*() that could use Frozen collections

Proprietary

Finds usages of ToImmutableDictionary() and ToImmutableHashSet(). In .NET 8+, ToFrozenDictionary() and ToFrozenSet() provide better read performance.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net8.FindFrozenCollection
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net8.FindFrozenCollection

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.