Extract selection + Preserve only connected topology
Add to this filter option to select only connected elements (linked by common nodes) when mesh consists of several components in one dataset.
CGX from CaluliX has a similar option:
seta ! all
This cgx-command plots all independend mesh parts (no shared nodes) in different colors and defines corresponding sets.