### Elasticsearch Version

master

### Installed Plugins

N/A

### Java Version

_bundled_

### OS Version

N/A

### Problem Description

@arteam [observed](https://github.com/elastic/elasticsearch/pull/83221/files#r795474431) that `static record` is redundant, records are apparently implicitly static. I think we should make sure that Checkstyle picks this up rather than needing human involvement.

### Steps to Reproduce

Mark a record declaration as `static` and observe that `./gradlew precommit` still passes.

### Logs (if relevant)

_No response_
x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/nlp/tokenizers/BpeTokenizer.java
List<BpeToken> getTokenizedValues() {
        return tokenizedValues;
    }
    @Override
    public void reset() throws IOException {
        super.reset();
        fillBuffer(input);
        tokens.clear();
        tokenizedValues.clear();
        filled = false;
    }
    @Override
    public final void end() throws IOException {
        super.end();
        // s
        offsetAtt.setOffset(inputStr.length(), inputStr.length());
    }
    @Override
    public final boolean incrementToken() throws IOException {
        // T
        // T
        if (filled && tokens.isEmpty()) {
            return false;
        }
        if (tokens.isEmpty()) {
            fillTokens();
        }
        if (tokens.isEmpty()) {
            return false;
        }