@Override
    public boolean shouldReplicateGroup(String group) {
        return included(group) && !excluded(group);
    }
Uses an include and exclude pattern.
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/DefaultGroupFilter.java