DirectBufferWrapper (long key, @NotNull DirectBufferWrapper wrapper) { totalSizeCached += wrapper.getLength(); DirectBufferWrapper oldShouldBeNull = super.put(key, wrapper); myMaxLoadedSize = Math.max(myMaxLoadedSize, totalSizeCached); return oldShouldBeNull; }