### 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
super(charSequence, tokenId, startOffset, endOffset);
            this.subWordToken = subWordToken;
        }
    }
    private record CharSequencePair(CharSequence pair, int firstPos, int secondPos) implements CharSequence {
        @Override
        public int length() {
            return pair.length();
        }
        @Override
        public char charAt(int index) {
            return pair.charAt(index);
        }
        @Override
        public CharSequence subSequence(int start, int end) {
            return pair.subSequence(start, end);
        }
        @Override
        public String toString() {
            return pair.toString();
        }
    }
    private static record CharTrie(Map<Character, CharTrie> children) {
        boolean isLeaf() {
            return children.isEmpty();
        }
        private void insert(char[] chars) {
            if (chars.length == 0) {
                return;
            }