@Override
    public void configure(Map<String, ?> props) {
        TopicFilterConfig config = new TopicFilterConfig(props);
        includePattern = config.includePattern();
        excludePattern = config.excludePattern();
    }
Uses an include and exclude pattern.
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/DefaultTopicFilter.java