### 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/action/datastreams/GetDataStreamAction.java
this(in.readList(in1 -> new Tuple<>(in1.readInstant(), in1.readInstant())));
            }
            @Override
            public void writeTo(StreamOutput out) throws IOException {
                out.writeCollection(temporalRanges, (out1, value) -> {
                    out1.writeInstant(value.v1());
                    out1.writeInstant(value.v2());
                });
            }
            @Override
            public boolean equals(Object o) {
                if (this == o) return true;
                if (o == null || getClass() != o.getClass()) return false;
                TimeSeries that = (TimeSeries) o;
                return temporalRanges.equals(that.temporalRanges);
            }
            @Override
            public int hashCode() {
                return Objects.hash(temporalRanges);
            }
        }
        private final List<DataStreamInfo> dataStreams;
        public Response(List<DataStreamInfo> dataStreams) {
            this.dataStreams = dataStreams;
        }
        public Response(StreamInput in) throws IOException {
            this(in.readList(DataStreamInfo::new));
        }
        public List<DataStreamInfo> getDataStreams() {
            return dataStreams;