boolean (ServiceViewItem item) { ServiceGroupNode group = groupRef.get(); ServiceViewItem parent = item.getParent(); return parent != null && group != null && getPath(parent).equals(getPath(group)); }