### 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
@Override
        public void process(IndexRequest indexRequest) {}
        @Override
        public int indexShard(String id, @Nullable String routing, XContentType sourceType, BytesReference source) {
            assert Transports.assertNotTransportThread("parsing the _source can get slow");
            checkNoRouting(routing);
            return hashToShardId(hashSource(sourceType, source));
        }
        public String createId(XContentType sourceType, BytesReference source, byte[] suffix) {
            return createId(hashSource(sourceType, source), suffix);
        }
        public String createId(Map<String, Object> flat, byte[] suffix) {
            return createId(hashSource(flat), suffix);
        }
        private static String createId(int routingHash, byte[] suffix) {
            byte[] idBytes = new byte[4 + suffix.length];
            ByteUtils.writeIntLE(routingHash, idBytes, 0);
            System.arraycopy(suffix, 0, idBytes, 4, suffix.length);
            return Base64.getUrlEncoder().withoutPadding().encodeToString(idBytes);
        }
        private int hashSource(XContentType sourceType, BytesReference source) {
            List<NameAndHash> hashes = new ArrayList<>();
            try {
                try (XContentParser parser = sourceType.xContent().createParser(parserConfig, source.streamInput())) {
                    parser.nextToken(); 
                    if (parser.currentToken() == null) {
                        throw new IllegalArgumentException("Error extracting routing: source didn't contain any routing fields");
                    }
                    parser.nextToken();
                    extractObject(hashes, null, parser);