void (Collection<? extends SearchEverywhereContributor<?>> contributors) { cancelAllFlushTasks(); buffer.clearBuffer(); Map<? extends SearchEverywhereContributor<?>, Boolean> map = contributors.stream() .filter(EssentialContributor::checkEssential) .collect(Collectors.toMap(Function.identity(), c -> false)); contributorsMap.clear(); contributorsMap.putAll(map); }