docs: static boolean[] compactArray(boolean[] array, int index, int length)
      {
          if (index == 0 && length == array.length) {
              return array;
          }
          return Arrays.copyOfRange(array, index, index + length);
      }