@SuppressWarnings("unchecked")
 private void preloadItem(T item, int position, int i) {
   final int[] dimensions = this.preloadDimensionProvider.getPreloadSize(item, position, i);
   if (dimensions != null) {
     GenericRequestBuilder preloadRequestBuilder =
         this.preloadModelProvider.getPreloadRequestBuilder(item);
     preloadRequestBuilder.into(preloadTargetQueue.next(dimensions[0], dimensions[1]));
   }
 }
 private void cancelAll() {
   for (int i = 0; i < maxPreload; i++) {
     Glide.clear(preloadTargetQueue.next(0, 0));
   }
 }