### 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
}
                firstFind = false;
                byte[] bytes = subStr.getBytes(StandardCharsets.UTF_8);
                char[] cs = new char[bytes.length];
                for (int i = 0; i < bytes.length; i++) {
                    int b = bytes[i];
                    // I
                    if (b < 0) {
                        b += 256;
                    }
                    cs[i] = BYTES_CHAR[b];
                }
                List<CharSequence> bpeTokens = new ArrayList<>(cs.length);
                for (int i = 0; i < cs.length; i++) {
                    bpeTokens.add(new CharsRef(cs, i, 1));
                }
                while (bpeTokens.size() > 1) {
                    int minRank = Integer.MAX_VALUE;
                    CharSequencePair minSeq = null;
                    List<CharSequencePair> pairs = pairs(bpeTokens);
                    for (CharSequencePair sequence : pairs) {
                        int rank = mergeRanks.getOrDefault(sequence, Integer.MAX_VALUE);
                        if (rank < minRank) {
                            minSeq = sequence;
                            minRank = rank;
                        }
                    }
                    if (minSeq == null) {
                        break;
                    }