def METHOD_NAME(self, line, rule):
    """Helper method for is_rule_disabled that check if given line is in range of any disabled block"""
    if rule not in self.rules:
        return False
    if line in self.rules[rule].lines:
        return True
    return any(block[0] <= line <= block[1] for block in self.rules[rule].blocks)