void (@NotNull PsiBinaryExpression expression) { super.visitBinaryExpression(expression); if (!ComparisonUtils.isEqualityComparison(expression)) { return; } final PsiExpression lhs = expression.getLOperand(); if (!ExpressionUtils.hasStringType(lhs)) { return; } final PsiExpression rhs = expression.getROperand(); if (!ExpressionUtils.hasStringType(rhs)) { return; } registerError(expression.getOperationSign(), expression); }