### 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/aggs/changepoint/KDE.java
double diff = Double.MAX_VALUE;
        for (int i = Math.max(Math.min(a, b - 1), 0); i < b; i++) {
            sf += normSf(orderedValues[i], bandwidth, x);
            diff = Math.min(Math.abs(orderedValues[i] - x), diff);
        }
        sf /= orderedValues.length;
        return new ValueAndMagnitude(sf, diff);
    }
    static double normSf(double mean, double standardDeviation, double x) {
        final double dev = x - mean;
        if (Math.abs(dev) > 40 * standardDeviation) {
            return dev > 0 ? 0.0d : 1.0d;
        }
        return 0.5 * Erf.erfc(dev / (standardDeviation * SQRT2));
    }
    static record ValueAndMagnitude(double value, double magnitude) {
        boolean isMoreSignificant(ValueAndMagnitude o, int numberOfTestedValues) {
            int c = Double.compare(significance(numberOfTestedValues), o.significance(numberOfTestedValues));
            if (c != 0) {
                return c < 0;
            } else {
                return magnitude > o.magnitude;
            }
        }
        double significance(int numberOfTestedValues) {
            return value > ESTIMATOR_EPS ? 1 - Math.pow(1 - value, numberOfTestedValues) : numberOfTestedValues * value;
        }
    }
}