### 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
Integer tokenId = vocabulary.get(token.charSequence());
                BpeToken toAdd = tokenId == null
                    ? new BpeToken(unknownToken, false, tokenizedUnknown, token.startOffset(), token.endOffset())
                    : new BpeToken(token.charSequence().toString(), false, tokenId, token.startOffset(), token.endOffset());
                tokens.add(toAdd);
                firstFind = false;
                split++;
                continue;
            }
            final int offsetOffset = token.startOffset();
            CharSequence delimitedTokenSequence = token.charSequence();
            // I
            // E
            // O
            // B
            if (split < largeTokensWithNeverSplits.size() - 1
                && delimitedTokenSequence.charAt(delimitedTokenSequence.length() - 1) == ' ') {
                delimitedTokenSequence = new BpeTokenReader.CharSequenceRef(delimitedTokenSequence, 0, delimitedTokenSequence.length() - 1);
            }
            BpeTokenReader tokenReader = new BpeTokenReader(delimitedTokenSequence);
            Optional<BpeTokenReader.CharSequenceRef> tokenSequence = Optional.empty();
            while ((tokenSequence = tokenReader.next()).isPresent()) {
                boolean addedSpace = false;
                final int offsetStart = tokenSequence.get().getOffset();
                final int offsetEnd = tokenSequence.get().getOffset() + tokenSequence.get().length();
                // I
                String subStr = tokenSequence.get().toString();
                if (firstFind && prefixSpace && subStr.startsWith(" ") == false) {
                    subStr = " " + subStr;
                    addedSpace = true;