void (@NotNull PsiBinaryExpression expression) { super.visitBinaryExpression(expression); if (!ComparisonUtils.isEqualityComparison(expression)) { return; } final PsiExpression lhs = expression.getLOperand(); final PsiType lhsType = lhs.getType(); final PsiExpression rhs = expression.getROperand(); if (rhs == null) { return; } final PsiType rhsType = rhs.getType(); if (PsiTypes.shortType().equals(lhsType) && PsiTypes.charType().equals(rhsType)) { registerError(expression); } else if (PsiTypes.charType().equals(lhsType) && PsiTypes.shortType().equals(rhsType)) { registerError(expression); } }