public static GroupType parse(String name) {
        if (name == null) {
            return UNKNOWN;
        }
        GroupType type = NAME_TO_ENUM.get(name.toLowerCase(Locale.ROOT));
        return type == null ? UNKNOWN : type;
    }
Parse a string into a consumer group type, in a case-insensitive manner.
clients/src/main/java/org/apache/kafka/common/GroupType.java