boolean (@NotNull SearchEverywhereFoundElementInfo newItemInfo, @NotNull SearchEverywhereFoundElementInfo alreadyFoundItemInfo) { PsiElement newElementPsi = toPsi(newItemInfo.getElement()); PsiElement alreadyFoundPsi = toPsi(alreadyFoundItemInfo.getElement()); return newElementPsi != null && alreadyFoundPsi != null && Objects.equals(newElementPsi, alreadyFoundPsi); }