### 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
charSequence.toString(),
                            subWordToken,
                            tokenId,
                            offsetStart + offsetOffset + startOffsetAdj,
                            offsetEnd + offsetOffset
                        );
                    tokens.add(toAdd);
                    subWordToken = true;
                }
            }
        }
        filled = true;
    }
    private static List<CharSequencePair> pairs(List<CharSequence> tokens) {
        List<CharSequencePair> pairs = new ArrayList<>(tokens.size() - 1);
        for (int i = 0; i < tokens.size() - 1; i++) {
            pairs.add(new CharSequencePair(MultiCharSequence.from(tokens.get(i), tokens.get(i + 1)), i, i + 1));
        }
        return pairs;
    }
    private void fillBuffer(Reader input) throws IOException {
        int len;
        // T
        final char[] buffer = new char[1024];
        inputStr.setLength(0);
        while ((len = input.read(buffer)) > 0) {
            inputStr.append(buffer, 0, len);
        }
    }
    public static class BpeToken extends DelimitedToken.Encoded {