void (@NotNull PsiPolyadicExpression expression) { super.visitPolyadicExpression(expression); if (!isBinaryNegation(expression)) { return; } final PsiExpression[] operands = expression.getOperands(); if (operands.length == 2) { int notNegatedCount = 0; for (PsiExpression operand : operands) { if (!isNegation(operand)) { notNegatedCount++; } } if (notNegatedCount > 1) { return; } } registerError(expression); }