S4738 currently targets Java 8 features that could be used instead of Guava.
However, Java >8 included more features that could replace Guava in the same manner, it makes sense to report them together in this rule.
More specifically, this ticket targets List.of, Set.of and Map.of. See JEP-269.
- Reworking the rule description, to not mention specifically Java 8.
- Extend S4738 to also report when Guava alternative are used:
Make sure that such methods are only reported when using Java version >= 9.