### 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
clearAttributes();
        BpeToken token = tokens.removeFirst();
        tokenizedValues.add(token);
        termAtt.setEmpty().append(token.charSequence());
        offsetAtt.setOffset(token.startOffset(), token.endOffset());
        if (token.subWordToken) {
            posIncAtt.setPositionIncrement(0);
        }
        return true;
    }
    private LinkedList<DelimitedToken> splitOutNeverSplit() {
        String str = this.inputStr.toString();
        char[] chars = str.toCharArray();
        CharTrie current = neverSplit;
        LinkedList<DelimitedToken> bigTokens = new LinkedList<>();
        int windowStart = 0;
        int neverSplitStart = 0;
        for (int i = 0; i < chars.length; i++) {
            CharTrie childNode = current.children.get(chars[i]);
            if (current == neverSplit && childNode != null) {
                neverSplitStart = i;
            }
            if (childNode == null) {
                if (current != neverSplit) {
                    current = neverSplit;
                }
                childNode = current.children.get(chars[i]);
                if (childNode != null) {
                    neverSplitStart = i;
                    current = childNode;