public static @Nullable long[] convertToLongArray(@Nullable int[] intArray) {
    if (intArray == null) return null;
    long[] array = new long[intArray.length];
    for (int i = 0; i < intArray.length; i++) {
      array[i] = (long) intArray[i];
    }
    return array;
  }
Test if all {@code check} items are contained in {@code array}.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/ArrayUtils.java