def METHOD_NAME(self):
    code_info = self.parse_code_type()
    potential_start_indices = [
        i
        for i, x in enumerate(self.str)
        if x == AttributeParser.attr_list_start_char()
    ]
    for i in potential_start_indices:
        tokens = self.try_get_attributes(i + 1)
        if tokens is not None:
            return tokens | code_info, i
    return code_info, None