boolean (@Nullable PyExpression node) { if (node instanceof PyBinaryExpression) { final var operator = ((PyBinaryExpression)node).getOperator(); return operator == PyTokenTypes.AND_KEYWORD || operator == PyTokenTypes.OR_KEYWORD; } return false; }