public Set<String> groupIds() {
        return Collections.unmodifiableSet(this.groups.keySet());
    }
@return The set of all groups' ids.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java