### 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
private static final double SQRT2 = FastMath.sqrt(2.0);
    private static final double ESTIMATOR_EPS = 1e-10;
    /**
     * Fit KDE choosing bandwidth by maximum likelihood cross validation.
     * @param orderedValues the provided values, sorted
     * @return the maximum likelihood bandwidth
     */
    private static double maxLikelihoodBandwidth(double[] orderedValues) {
        int step = Math.max((int) (orderedValues.length / 10.0 + 0.5), 2);
        IntStream.Builder trainingIndicesBuilder = IntStream.builder();
        IntStream.Builder testIndicesBuilder = IntStream.builder();
        for (int i = 0; i < orderedValues.length; i += step) {
            int adjStep = Math.min(i + step, orderedValues.length) - i;
            List<Integer> indices = IntStream.range(i, i + adjStep).boxed().collect(Collectors.toList());
            Randomness.shuffle(indices);
            int n = Math.min(adjStep / 2, 4);
            indices.stream().limit(n).forEach(trainingIndicesBuilder::add);
            indices.stream().skip(n).forEach(testIndicesBuilder::add);
        }
        int[] trainingIndices = trainingIndicesBuilder.build().toArray();
        int[] testIndices = testIndicesBuilder.build().toArray();
        Arrays.sort(trainingIndices);
        Arrays.sort(testIndices);
        double[] xTrain = IntStream.of(trainingIndices).mapToDouble(i -> orderedValues[i]).toArray();
        double maxLogLikelihood = -Double.MAX_VALUE;
        double result = 0;
        for (int i = 0; i < 20; ++i) {
            double bandwidth = 0.02 * (i + 1) * (orderedValues[orderedValues.length - 1] - orderedValues[0]);
            double logBandwidth = Math.log(bandwidth);
            double logLikelihood = IntStream.of(testIndices)