@Contract(pure=true)
  public static double @NotNull [] realloc(double @NotNull [] array, int newSize) {
    if (newSize == 0) {
      return EMPTY_DOUBLE_ARRAY;
    }

    return array.length == newSize ? array : Arrays.copyOf(array, newSize);
  }
@Contract(pure=true)
  public static double @NotNull [] realloc(double @NotNull [] array, int newSize)