public ListConsumerGroupsOptions inStates(Set<ConsumerGroupState> states) {
        this.states = (states == null || states.isEmpty()) ? Collections.emptySet() : new HashSet<>(states);
        return this;
    }
If states is set, only groups in these states will be returned by listConsumerGroups().
Otherwise, all groups are returned.
This operation is supported by brokers with version 2.6.0 or later.
clients/src/main/java/org/apache/kafka/clients/admin/ListConsumerGroupsOptions.java