public boolean isPaused(final String topologyName) {
        if (topologyName == null) {
            return pausedTopologies.contains(UNNAMED_TOPOLOGY);
        } else {
            return pausedTopologies.contains(topologyName);
        }
    }
Checks if a given topology is paused.
@param topologyName If null, assume that we are checking the `UNNAMED_TOPOLOGY`.
@return A boolean indicating if the topology is paused.
streams/src/main/java/org/apache/kafka/streams/processor/internals/TopologyMetadata.java