### 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<CharSequence> mergedBpeTokens = new ArrayList<>(bpeTokens.size() - 1);
                    for (int i = 0; i < minSeq.firstPos; i++) {
                        mergedBpeTokens.add(bpeTokens.get(i));
                    }
                    mergedBpeTokens.add(minSeq);
                    for (int i = minSeq.secondPos + 1; i < bpeTokens.size(); i++) {
                        mergedBpeTokens.add(bpeTokens.get(i));
                    }
                    bpeTokens = mergedBpeTokens;
                }
                boolean subWordToken = false;
                for (CharSequence charSequence : bpeTokens) {
                    // c
                    // I
                    Integer tokenId = vocabulary.get(charSequence);
                    // I
                    // t
                    int startOffsetAdj = subWordToken == false
                        && charSequence.charAt(0) == ENCODED_SPACE_CHAR
                        && addedSpace == false
                        && charSequence.length() > 1 ? 1 : 0;
                    BpeToken toAdd = tokenId == null
                        ? new BpeToken(
                            unknownToken,
                            subWordToken,
                            tokenizedUnknown,
                            offsetStart + offsetOffset + startOffsetAdj,
                            offsetEnd + offsetOffset
                        )
                        : new BpeToken(