Lightroom Macro to Stack All DNG/HEIC Files?

Like many who use an iPhone i shot with both HEIC+RAW Files. Unfortunately Lightroom doesn't automatically stack these files. Has any written a macro to this enmasse?