### 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
}
    private static final char[] BYTES_CHAR = byteEncoder();
    // N
    private static final char ENCODED_SPACE_CHAR = BYTES_CHAR[32];
    public static BpeTokenizer build(
        List<String> neverSplit,
        List<String> dictionary,
        List<String> merges,
        String unknownToken,
        boolean isPrefixSpace
    ) {
        CharArraySet neverSplitSet = new CharArraySet(neverSplit, false);
        CharTrie neverSplitTree = CharTrie.build(neverSplit);
        CharArrayMap<Integer> mergeRanks = new CharArrayMap<>(merges.size(), false);
        int mergePos = 0;
        for (String merge : merges) {
            mergeRanks.put(Strings.replace(merge, " ", ""), mergePos++);
        }
        CharArrayMap<Integer> vocabHash = new CharArrayMap<>(dictionary.size(), false);
        int vocabPos = 0;
        for (String v : dictionary) {
            vocabHash.put(v, vocabPos++);
        }
        return new BpeTokenizer(isPrefixSpace, mergeRanks, neverSplitSet, neverSplitTree, vocabHash, unknownToken);
    }
    private final StringBuilder inputStr = new StringBuilder();
    private final Matcher matcher;
    private final LinkedList<BpeToken> tokens = new LinkedList<>();
    private final List<BpeToken> tokenizedValues = new ArrayList<>();
    private final CharArrayMap<Integer> mergeRanks;