LPS-39077

Hi @zberentey,

I added the code for change status on Dependent's methods because the code in TrashUtil was very confusing.

Could you check my changes to see if I made any mistake?