boolean (@NotNull PsiExpression first, @NotNull PsiExpression second, @NotNull String firstExprVarName, @NotNull PsiVariable secondExprVariable) { PsiExpression secondCopy = (PsiExpression)second.copy(); for (PsiReference ref : ReferencesSearch.search(secondExprVariable, new LocalSearchScope(secondCopy))) { if (ref instanceof PsiReferenceExpression) ExpressionUtils.bindReferenceTo((PsiReferenceExpression)ref, firstExprVarName); } return ourEquivalence.expressionsAreEquivalent(first, secondCopy); }