def METHOD_NAME(
    self, sentry_app_id: int, sentry_app_name: str
) -> RpcSentryAppComponent:
    components = app_service.find_app_components(app_id=sentry_app_id)
    for component in components:
        if component.type == "alert-rule-action":
            return component
    raise ValidationError(
        f"Alert Rule Actions are not enabled for the {sentry_app_name} integration."
    )