code: public void setArrayElement(Object array, int index, Object value) {
          Array.set(array, index, value);
      }
docs: Set the element at the given index in the given array. This is a helper
  method for {@link Array#set(Object, int, Object)}. If the given array is
  not an array, then {@link IllegalArgumentException} is thrown. If the
  given index is out of bounds, then {@link ArrayIndexOutOfBoundsException}
  is thrown. Note that if the component type of the array is a primitive,
  then the value will be unwrapped. This may result in a
  {@link NullPointerException} being thrown.
  
  @param array The array to set the element to
  @param index The index of the array to set
  @param value The value of the array to set