### 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_
server/src/main/java/org/elasticsearch/cluster/routing/IndexRouting.java
ensureExpectedToken(null, parser.nextToken(), parser);
                }
            } catch (IOException | ParsingException e) {
                throw new IllegalArgumentException("Error extracting routing: " + e.getMessage(), e);
            }
            return hashesToHash(hashes);
        }
        private static void extractObject(List<NameAndHash> hashes, @Nullable String path, XContentParser source) throws IOException {
            while (source.currentToken() != Token.END_OBJECT) {
                ensureExpectedToken(Token.FIELD_NAME, source.currentToken(), source);
                String fieldName = source.currentName();
                String subPath = path == null ? fieldName : path + "." + fieldName;
                source.nextToken();
                extractItem(hashes, subPath, source);
            }
        }
        private static void extractItem(List<NameAndHash> hashes, String path, XContentParser source) throws IOException {
            switch (source.currentToken()) {
                case START_OBJECT:
                    source.nextToken();
                    extractObject(hashes, path, source);
                    source.nextToken();
                    break;
                case VALUE_STRING:
                    hashes.add(new NameAndHash(new BytesRef(path), hash(new BytesRef(source.text()))));
                    source.nextToken();
                    break;
                case VALUE_NULL:
                    source.nextToken();
                    break;