Since Heli is not Joseph`s father according to Mat 1:16 it is assumed that this Heli was acrually Mary`s father to whom Joseph was son-in-law.