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