@Override
    public boolean containsKey(Object key) {
      return key instanceof IdIndexEntry entry && myOccurrences.containsKey(entry.getWordHashCode());
    }
@Override
    public boolean containsKey(Object key)