docs: public <T> T[] validIndex(final T[] array, final int index, final String message, final Object... values) {
          notNull(array);
          if (index < 0 || index >= array.length) {
              failIndexOutOfBounds(String.format(message, values));
          }
          return array;
      }