@Override
			protected boolean removeEldestEntry(Entry<K, CachedValue> eldest) {
				if (size() > GTimerCache.this.capacity) {
					valueRemoved(eldest.getKey(), eldest.getValue().getValue());
					return true;
				}
				return false;
			}
Constructs new GTimerCache with a duration for cached entries and a maximum
number of entries to cache.
@param lifetime the duration that a key,value will remain in the cache without being
accessed (accessing a cached entry resets its time)
@param capacity the maximum number of entries in the cache before least recently used
entries are removed
Ghidra/Framework/Generic/src/main/java/ghidra/util/timer/GTimerCache.java