Record pattern can be used
Reports patterns that can be replaced with record patterns.
After the quick-fix is applied:
This inspection only reports if the language level of the project or module is 19 or higher
New in 2023.1
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3