def METHOD_NAME(self, name):
    """Retrieve the current instance of an extension."""
    if name not in self.extensions:
        return None
    if "instance" not in self.extensions[name]:
        self.extensions[name]["instance"] = self.extensions[name]["cls"]()
    return self.extensions[name]["instance"]