def METHOD_NAME(
    self,
    caller_being_defined: Optional[GraphNode],
    callback: Callable[[AdaVisitor], None]
) -> None:
    """
    Do something with a visitor locally overriding the values of certain
    variables.
    """
    local_visitor = StaticCallGraphVisitor(
        context=self.context,
        caller_being_defined=caller_being_defined,
        nodes=self.nodes,
        edges=self.edges
    )
    callback(local_visitor)