Prefer Sets#immutableEnumSet(Enum, Enum[]) over less efficient alternatives

Apache 2.0

Warning: this rule is not completely behavior preserving: while the ImmutableSet#of expression produces a set that iterates over its elements in the listed order, the replacement code iterates over the elements in enum definition order.

tech.picnic.errorprone.refasterrules.ImmutableEnumSetRulesRecipes$SetsImmutableEnumSet4Recipe
mod run . --recipe='tech.picnic.errorprone.refasterrules.ImmutableEnumSetRulesRecipes$SetsImmutableEnumSet4Recipe'

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