Instruction::getNext and Instruction::getPrev are private

Hi,

I switched to the upcoming version 2.0 branch and porting my code from
1.9. Thanks there is not a lot to do. I found that
Instruction::getNext and Instruction::getPrev are private. Is this
intentional? If yes, what would you recommend instead using them?

Thanks,
Ferad