Pattern variable can be used
Reports local variable declarations that can be replaced with pattern variables, which are usually more compact.
Can be replaced with:
This inspection only reports if the language level of the project or module is 16 or higher
New in 2020.1
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3