### 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/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/Function.java
*
         * TODO: replace the boolean with a more descriptive enum.
         *
         * @param searchResponse the response after querying for changes
         * @return the position of the change collector, null in case the collector is exhausted
         */
        Map<String, Object> processSearchResponse(SearchResponse searchResponse);
        /**
         * Build the filter query to narrow the result set given the previously collected changes.
         *
         * @param lastCheckpoint the last checkpoint
         * @param nextCheckpoint the next (in progress) checkpoint
         * @return a filter query, null in case of no filter
         */
        QueryBuilder buildFilterQuery(TransformCheckpoint lastCheckpoint, TransformCheckpoint nextCheckpoint);
        /**
         * Filter indices according to the given checkpoints.
         *
         * @param lastCheckpoint the last checkpoint
         * @param nextCheckpoint the next (in progress) checkpoint
         * @return set of indices to query
         */
        Collection<String> getIndicesToQuery(TransformCheckpoint lastCheckpoint, TransformCheckpoint nextCheckpoint);
        /**
         * Clear the internal state to free up memory.
         */
        void clear();
        /**
         * Whether the collector optimizes change detection by narrowing the required query.
         *