public void increaseValueIfExists(E element) {
      final int index = mFirstList.indexOf(element);
      if (index < 0) {
        return;
      }
      Integer newInt = mSecondList.get(index) + 1;
      if (index == mMaxCapacity - 1) {
        mSecondList.set(mMaxCapacity - 1, newInt);
        return;
      }
      mFirstList.remove(index);
      mSecondList.remove(index);
      mFirstList.add(element);
      mSecondList.add(newInt);
    }
If the element exists in the List, increase its value and put it in the youngest position
imagepipeline-base/src/main/java/com/facebook/imagepipeline/cache/AbstractAdaptiveCountingMemoryCache.java