private static boolean isValidMajorVersion(@Nullable EventLogMajorVersion build) {
    if (build == null) return false;

    int[] components = build.getComponents();
    return components.length > 0 && components[0] > 0;
  }
private static boolean isValidMajorVersion(@Nullable EventLogMajorVersion build)