boolean (PsiExpression expression, PsiParameter parameter) { if (!(expression instanceof PsiBinaryExpression binaryExpression)) { return false; } final PsiExpression lhs = binaryExpression.getLOperand(); final PsiExpression rhs = binaryExpression.getROperand(); return isIdentityEquals(lhs, rhs, parameter) || isIdentityEquals(rhs, lhs, parameter); }