boolean (PsiBinaryExpression expression) { final IElementType tokenType = expression.getOperationTokenType(); final PsiExpression rightOperand = PsiUtil.skipParenthesizedExprDown(expression.getROperand()); if (JavaTokenType.ANDAND.equals(tokenType)) { return registerProblem(expression, rightOperand, true); } else if (JavaTokenType.OROR.equals(tokenType)) { if (rightOperand instanceof PsiPrefixExpression && JavaTokenType.EXCL.equals(((PsiPrefixExpression)rightOperand).getOperationTokenType())) { final PsiExpression negatedRightOperand = PsiUtil.skipParenthesizedExprDown(((PsiPrefixExpression)rightOperand).getOperand()); return registerProblem(expression, negatedRightOperand, false); } } return true; }