def METHOD_NAME(content, pos_start_identifier):
    level_parenthesis = 0
    level_bracket = 0
    while True:
        c = content[pos_start_identifier]
        if level_parenthesis > 0 and c != "(" and c != ")":
            pos_start_identifier -= 1
        elif c == ")":
            level_parenthesis += 1
            pos_start_identifier -= 1
        elif c == "(":
            if level_parenthesis == 0:
                break
            level_parenthesis -= 1
            pos_start_identifier -= 1
        elif level_bracket > 0 and c != "[" and c != "]":
            pos_start_identifier -= 1
        elif c == "]":
            level_bracket += 1
            pos_start_identifier -= 1
        elif c == "[":
            if level_bracket == 0:
                break
            level_bracket -= 1
            pos_start_identifier -= 1
        elif c.isalnum() or c == "_" or c == ".":
            pos_start_identifier -= 1
        elif c == ">" and content[pos_start_identifier - 1] == "-":
            pos_start_identifier -= 2
        else:
            break
    pos_start_identifier += 1
    return pos_start_identifier