UGameplayAbilityBlueprint::FindRootGameplayAbilityBlueprint

Returns the most base gameplay ability blueprint for a given blueprint (if it is inherited from another ability blueprint, returning null if only native / non-ability BP classes are it's parent)