Painting groups and components without going into them

Why don’t you select those 2 and make them unique? That would be a workaround.

Also, a week ago @DaveR provided a good explanation about this topic: