code: @SuppressWarnings("unchecked")
    public static Object getElement(Object iterable, int index) {
      if (iterable.getClass().isArray())
        return getElementFromArrary(iterable, index);
      if (iterable instanceof Collection)
        return getElementFromCollection((Collection<Object>) iterable, index);
  
      return null;
    }
docs: Gets the element from an iterable with given index.
  
  @param iterable the iterable
  @param index the index
  @return null if the iterable doesn't have the element at index, otherwise, return the element