def METHOD_NAME(self, obj) -> str:
    if self.ready(obj):
        return ""
    if obj.heeft_alle_autorisaties and obj.has_authorizations:
        return _(
            "An application must either have 'all permissions' checked, or have "
            "explicit authorizations, but not both."
        )
    if not obj.heeft_alle_autorisaties and not obj.has_authorizations:
        return _(
            "An application must either have 'all permissions' checked, or have "
            "explicit authorizations assigned. Nothing is set now."
        )
    return ""