### 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
}
            } else if (childNode.isLeaf()) {
                // b
                CharSequence maybeNeverSplit = new CharsRef(chars, neverSplitStart, (i + 1) - neverSplitStart);
                if (neverSplitSet.contains(maybeNeverSplit)) {
                    if (windowStart < neverSplitStart) {
                        bigTokens.add(new DelimitedToken(new CharsRef(chars, windowStart, neverSplitStart), windowStart, neverSplitStart));
                    }
                    bigTokens.add(new DelimitedToken(maybeNeverSplit, neverSplitStart, i + 1));
                }
                windowStart = i + 1;
                current = neverSplit;
            } else {
                // s
                current = childNode;
            }
        }
        int finalIndex = bigTokens.isEmpty() ? 0 : bigTokens.getLast().endOffset();
        if (finalIndex < chars.length) {
            bigTokens.add(new DelimitedToken(new CharsRef(chars, finalIndex, chars.length - finalIndex), finalIndex, chars.length));
        }
        return bigTokens;
    }
    private void fillTokens() {
        boolean firstFind = true;
        LinkedList<DelimitedToken> largeTokensWithNeverSplits = splitOutNeverSplit();
        // T
        int split = 0;
        for (DelimitedToken token : largeTokensWithNeverSplits) {
            if (neverSplitSet.contains(token.charSequence())) {