public static ConsumerGroupState parse(String name) {
        ConsumerGroupState state = NAME_TO_ENUM.get(name.toUpperCase(Locale.ROOT));
        return state == null ? UNKNOWN : state;
    }
Case-insensitive consumer group state lookup by string name.
clients/src/main/java/org/apache/kafka/common/ConsumerGroupState.java