public ListConsumerGroupsOptions withTypes(Set<GroupType> types) {
        this.types = (types == null || types.isEmpty()) ? Collections.emptySet() : new HashSet<>(types);
        return this;
    }
If types is set, only groups of these types will be returned by listConsumerGroups().
Otherwise, all groups are returned.
clients/src/main/java/org/apache/kafka/clients/admin/ListConsumerGroupsOptions.java