/** * empty lists get read back as null * So there is no distinction between null and empty * @param list got from a protos getter * @return whether the list is null or empty */ public static <T> boolean notEmpty(List<T> list) { return !isEmpty(list); }