docs: public static <T> T[] resize(T[] buffer, int newSize, Class<?> componentType) {
  		T[] newArray = newArray(componentType, newSize);
  		if (isNotEmpty(buffer)) {
  			System.arraycopy(buffer, 0, newArray, 0, Math.min(buffer.length, newSize));
  		}
  		return newArray;
  	}