public long numClassicGroups() {
        return classicGroupGauges.values().stream()
                                 .mapToLong(AtomicLong::get).sum();
    }
@return The total number of classic groups.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/metrics/GroupCoordinatorMetricsShard.java