boolean (@NotNull PsiElement newItem, @NotNull PsiElement alreadyFound) { VirtualFile newItemFile = convertToFileIsPossible(newItem); VirtualFile foundItemFile = convertToFileIsPossible(alreadyFound); return newItemFile != null && newItemFile.equals(foundItemFile); }