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