boolean (@NotNull SearchEverywhereFoundElementInfo newItem, @NotNull SearchEverywhereFoundElementInfo alreadyFoundItem) { OptionDescription newOption = extractOption(newItem.getElement()); OptionDescription oldOption = extractOption(alreadyFoundItem.getElement()); return newOption != null && oldOption != null && newOption.equals(oldOption); }