@Contract(pure=true)
  public static <E> E @NotNull [] ensureExactSize(int count, E @NotNull [] sample) {
    if (count == sample.length) return sample;
    return newArray(getComponentType(sample), count);
  }
@Contract(pure=true)
  public static <E> E @NotNull [] ensureExactSize(int count, E @NotNull [] sample)