docs: @javax.annotation.Nonnull
    public static JsonArray getJson(@javax.annotation.Nonnull final int[] kernelDims) {
      @javax.annotation.Nonnull final JsonArray array = new JsonArray();
      for (final int k : kernelDims) {
        array.add(new JsonPrimitive(k));
      }
      return array;
    }