def METHOD_NAME(self, state: State, v: Variable) -> None:
    if not v.extern:
        return
    self.api.add_variable(
        ApiEntryVariable(
            stringify_descr(v.name),
            stringify_descr(v.type),
        )
    )