void (@NotNull Object item, SearchEverywhereContributor<?> contributor) { if (listElements.isEmpty()) return; for (int i = 0; i < listElements.size(); i++) { SearchEverywhereFoundElementInfo info = listElements.get(i); if (info.getContributor() == contributor && info.getElement().equals(item)) { listElements.remove(i); int newSize = getSize(); if (myMaxFrozenIndex >= newSize) myMaxFrozenIndex = newSize - 1; fireIntervalRemoved(this, i, i); return; } } }