You should wait for the final disposal of the case then when owner comes to claim possession of same that time you can claim adverse possession over it though it was on rent and court case is going on the adverse possession might not be given but if rent was not paid or demand then you can further strech the case and can bargain and then purHase.