/guava/android/guava/src/com/google/common/collect/ObjectArrays.java
if ( array.length < size ) { array = newArray ( array, size ) ; }
T[] result = Arrays.copyOf(array, array.length + 1); result[array.length] = element; return result; } static <T extends @Nullable Object> T[] toArrayImpl(Collection<?> c, T[] array) { int size = c.size(); <extra_id_0> fillArray(c, array); if (array.length > size) { @Nullable Object[] unsoundlyCovariantArray = array; unsoundlyCovariantArray[size] = null; } return array;