def METHOD_NAME(self, data, tags):
    if 'name' not in tags:
        return
    stack = []
    for c in tags["name"]:
        if c in self.quotes_j:
            if len(stack) == 0 or stack[-1][0] == c or c not in stack[-1][1]:
                group = next(q for q in self.quotes if c in q)
                stack.append([c, group])
            else:
                p, group = stack.pop()
                if c not in group:
                    return [{"class": 50704, "subclass": 0, "text": T_("Unbalanced {0} with {1}", p, c)}]
    if len(stack) > 0:
        return [{"class": 50704, "subclass": 1, "text": T_("Unbalanced {0}", "".join(map(lambda q: q[0], stack)))}]