Suggested fix
For recent versions of the data (>= v1.1), the body part is recorded for clearances and can simply be retrieved from the annotation of the event. See for example match 3775631.
For old versions of the data (< v1.1), the body part is not recorded for clearances and I think there is simply no way to infer it. See for example match 7584.
Description of bug The StatsBomb event data deserializer infers the body part used to perform a clearance from the list of related events. This is incorrect. Typically, the related event refers to the pass that was intercepted. It does not correspond to the clearance!
Suggested fix For recent versions of the data (>= v1.1), the body part is recorded for clearances and can simply be retrieved from the annotation of the event. See for example match 3775631.
For old versions of the data (< v1.1), the body part is not recorded for clearances and I think there is simply no way to infer it. See for example match 7584.