Describe the bug
final keyword is not recognized when using instanceof pattern
To Reproduce
Any use of instanceof pattern with final keyword trigger the rule:
if (o instanceof final String k) { // <--- here final keyword is not recognized
return key.equals(k.getKey());
}
Expected behaviour
When using instanceof pattern with final keyword the rule must not be triggered.
Screenshots

Software Versions
- SonarQube Version: v25.8.0.112029
- Plugin Version: 2.1.1