private static boolean isEmptyClassicGroup(Group group) {
        return group != null && group.type() == CLASSIC && group.isEmpty();
    }
@return true if the group is an empty classic group.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java