Marking all Scriptable Objects as addressable programmatically?

I wound up using ScriptableObject based EventChannels to relay events across scenes ala the Chop-Chop example game. Unfortunately, I also used this to relay AudioCues, and now I’m finding that as my project grows, my audio can disappear if I forget to manually mark a given ScriptableObject AudioCueSO as “Addressable”.

I’m wondering if there is a way to simply mark all scriptable objects in my project as Addressable programatically?

Checking the box just adds them to the default group.

You’ll need to ‘add’ them to the groups via code. You can see some of the API methods here: Class AddressableAssetSettings | Package Manager UI website