void (@NotNull PsiConditionalExpression expression) { super.visitConditionalExpression(expression); final PsiExpression thenBranch = expression.getThenExpression(); if (thenBranch == null) { return; } final PsiExpression elseBranch = expression.getElseExpression(); if (elseBranch == null) { return; } final PsiExpression condition = expression.getCondition(); if (!ExpressionUtils.isNegation(condition, m_ignoreNegatedNullComparison, m_ignoreNegatedZeroComparison)) { return; } registerError(condition); }