def METHOD_NAME(self, node: nodes.Module) -> None:
    """Visit an astroid.Module node to check too complex rating and
    add message if is greater than max_complexity stored from options.
    """
    visitor = PathGraphingAstVisitor()
    for child in node.body:
        visitor.preorder(child, visitor)
    for graph in visitor.graphs.values():
        complexity = graph.complexity()
        node = graph.root
        if hasattr(node, "name"):
            node_name = f"'{node.name}'"
        else:
            node_name = f"This '{node.__class__.__name__.lower()}'"
        if complexity <= self.linter.config.max_complexity:
            continue
        self.add_message(
            "too-complex", node=node, confidence=HIGH, args=(node_name, complexity)
        )