def METHOD_NAME(self, node):
    def rec(n):
        if isinstance(n, ast.Name):
            return demangle(n.id),
        elif isinstance(n, ast.Attribute):
            return rec(n.value) + (n.attr,)
    attr = rec(node)
    attr and self.result.add(attr)