public synchronized Set<TopicPartition> pausedPartitions() {
        return collectPartitions(TopicPartitionState::isPaused);
    }
Check whether a topic matches a subscribed pattern.

@return true if pattern subscription is in use and the topic matches the subscribed pattern, false otherwise
clients/src/main/java/org/apache/kafka/clients/consumer/internals/SubscriptionState.java