private static void writeActivityId(@NotNull DataOutput out, @Nullable ActivityId activityId) throws IOException {
    DataStreamUtil.writeStringOrNull(out, activityId != null ? activityId.getKind() : null);
    DataStreamUtil.writeStringOrNull(out, activityId != null ? activityId.getProviderId() : null);
  }
private static void writeActivityId(@NotNull DataOutput out, @Nullable ActivityId activityId)