boolean (@NotNull PsiExpression originalOccurrence, @NotNull List<? extends PsiExpression> occurrences, @NotNull PsiVariable variable) { return ContainerUtil.exists(occurrences, occurrence -> occurrence != originalOccurrence && canReplaceWith(occurrence, variable)); }