private boolean included(String topic) {
        return includePattern != null && includePattern.matcher(topic).matches();
    }
Uses an include and exclude pattern.
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/DefaultTopicFilter.java