def METHOD_NAME(self) -> Set[str]:
    """Return the permissions of the app."""
    if not self.is_active:
        return set()
    perm_cache_name = "_app_perm_cache"
    if not hasattr(self, perm_cache_name):
        perms = self.permissions.all()
        perms = perms.values_list("content_type__app_label", "codename").order_by()
        setattr(self, perm_cache_name, {f"{ct}.{name}" for ct, name in perms})
    return getattr(self, perm_cache_name)