public TopicCreationGroup findFirstGroup(String topic) {
        return topicGroups.values().stream()
                .filter(group -> group.matches(topic))
                .findFirst()
                .orElse(defaultTopicGroup);
    }
Get the first topic creation group that is configured to match the given {@code topic}
name. If topic creation is enabled, any topic should match at least the default topic
creation group.

@param topic the topic name to match against group configurations

@return the first group that matches the given topic
connect/runtime/src/main/java/org/apache/kafka/connect/util/TopicCreation.java