private boolean processQueue() {
    KeyReference<K> wk;
    boolean processed = false;
    //noinspection unchecked
    while ((wk = (KeyReference<K>)myReferenceQueue.poll()) != null) {
      V v = myMap.remove(wk);
      if (myEvictionListener != null) {
        myEvictionListener.accept(this, v);
      }
      processed = true;
    }
    return processed;
  }
private boolean processQueue()