void (@NotNull PsiBinaryExpression expression) { super.visitBinaryExpression(expression); if (!ComparisonUtils.isEqualityComparison(expression)) { return; } final PsiExpression rhs = expression.getROperand(); if (rhs == null) return; final PsiExpression lhs = expression.getLOperand(); if (isNewObject(rhs) && !(lhs.getType() instanceof PsiPrimitiveType)) { registerError(rhs, expression, expression.getOperationSign().getText()); } else if (isNewObject(lhs) && !(rhs.getType() instanceof PsiPrimitiveType)) { registerError(lhs, expression, expression.getOperationSign().getText()); } }