def METHOD_NAME(self) -> T:
    """Return main instance based on priority."""
    for priority in chain(self._takeover_protocol, self._priorities):
        if priority in self._interfaces:
            return self._interfaces[priority]
    raise exceptions.NotSupportedError()