We have recently merged a ton of automated refactors, I believe some by OpenRewrite and some by error-prone. Right now we have: - spotless - spotbugs - errorprone - openrewrite We just received an excellent PR tackling a very hard and long-requested feature: - https://github.com/diffplug/spotless/pull/2744 It failed CI. I took a look and - https://github.com/diffplug/spotless/actions/runs/19546227953/job/55965599249 - literally 3000 lines of warnings in the build (!!!) - I clone it locally - Looks like this is the failure ``` * What went wrong: Execution failed for task ':lib:compileJavaParserJava'. > Compilation failed; see the compiler output below. /Users/ntwigg/Documents/dev/spotless/lib/src/javaParser/java/com/diffplug/spotless/glue/javaParser/ExpandWildcardsFormatterFunc.java:95: error: [CollectorMutability] Avoid `Collectors.to{List,Map,Set}` in favor of collectors that emphasize (im)mutability .collect(toMap(Function.identity(), ^ (see https://error-prone.picnic.tech/bugpatterns/CollectorMutability) Did you mean '.collect(toImmutableMap(Function.identity(),' or 't -> new TreeSet<>(Comparator.comparing(ImportDeclaration::getNameAsString)), (a, b) -> { throw new IllegalStateException(); }, HashMap::new));'? 1 error ``` I like immutability, but the warning above is not easy to fix. We don't have guava, `toMap` is a good choice here. @Pankraz76 The feature in the PR is more important than the rule-check. When rule-checking is consuming more reviewer time than actual PRs, something is wrong. For this reason, I removed error-prone fom the build in the above-mentioned PR. - https://github.com/diffplug/spotless/pull/2744/commits/06b33ff435ab94320ac9c632371cc60cbd72c99b