void (@NotNull PsiConditionalExpression expression) { super.visitConditionalExpression(expression); final PsiExpression condition = PsiUtil.skipParenthesizedExprDown(expression.getCondition()); if (!(condition instanceof PsiBinaryExpression binaryExpression)) { return; } final PsiReferenceExpression referenceExpression = extractVariableReference(binaryExpression); if (referenceExpression == null) { return; } final IElementType tokenType = binaryExpression.getOperationTokenType(); if (tokenType == JavaTokenType.EQEQ) { if (checkVariableUsage(referenceExpression, expression.getThenExpression(), expression.getElseExpression())) { registerError(referenceExpression, Boolean.FALSE); } } else if (tokenType == JavaTokenType.NE) { if (checkVariableUsage(referenceExpression, expression.getElseExpression(), expression.getThenExpression())) { registerError(referenceExpression, Boolean.FALSE); } } }