void (@NotNull GrBinaryExpression expression) { super.visitBinaryExpression(expression); final GrExpression rhs = expression.getRightOperand(); if (rhs == null) { return; } final IElementType sign = expression.getOperationTokenType(); if (!GroovyTokenTypes.mBAND.equals(sign) && !GroovyTokenTypes.mBOR.equals(sign)) { return; } if (!PsiTypes.booleanType().equals(rhs.getType())) { return; } registerError(expression); }