def METHOD_NAME(self, node: lal.Name) -> Optional[GraphNode]:
    """Returns the graph node for a name, creating it if none exists yet."""
    key = get_node_key(node)
    if key is None:
        return None
    if key not in self.nodes:
        self.nodes[key] = node
    return self.nodes[key]