void (@NotNull PsiPolyadicExpression expression) { super.visitPolyadicExpression(expression); if (!ComparisonUtils.isEqualityComparison(expression)) { return; } final PsiElement parent = expression.getParent(); if (parent instanceof PsiExpression) { if (ComparisonUtils.isEqualityComparison((PsiExpression)parent)) { return; } } final PsiExpression[] operands = expression.getOperands(); if (operands.length >= 3) { registerError(expression); } else { for (PsiExpression operand : operands) { if (ComparisonUtils.isEqualityComparison(operand)) { registerError(expression); break; } } } }