code: @SuppressWarnings ({ "rawtypes", "unchecked" })
      private final void processQueue () {
  
          SoftValue<V> softValue;
          while ((softValue = (SoftValue) queue.poll()) != null) {
              internalMap.remove(softValue.key);
          }
      }
docs: Remove garbage collected soft values with the help of the reference queue.