### 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 final CharArrayMap<Integer> vocabulary;
    private final CharSequence unknownToken;
    private final CharArraySet neverSplitSet;
    private final CharTrie neverSplit;
    private final int tokenizedUnknown;
    private final boolean prefixSpace;
    private boolean filled;
    public BpeTokenizer(
        boolean prefixSpace,
        CharArrayMap<Integer> mergeRanks,
        CharArraySet neverSplitSet,
        CharTrie neverSplit,
        CharArrayMap<Integer> vocabulary,
        CharSequence unknownToken
    ) {
        super();
        matcher = pattern.matcher("");
        this.mergeRanks = mergeRanks;
        this.neverSplitSet = neverSplitSet;
        this.neverSplit = neverSplit;
        this.vocabulary = vocabulary;
        if (vocabulary.containsKey(unknownToken) == false) {
            throw new IllegalArgumentException(
                "provided vocabulary does not contain the unknown token of [" + unknownToken.toString() + "]"
            );
        }
        this.unknownToken = unknownToken;
        this.tokenizedUnknown = vocabulary.get(unknownToken);
        this.prefixSpace = prefixSpace;
    }