V (@NotNull Object key) { processQueue(); // optimization: //noinspection unchecked myHardKeyInstance.set((K)key); try { return myMap.remove(myHardKeyInstance); } finally { myHardKeyInstance.clear(); } }