Regarding Japan, the main reason for their stagnation is due to demographics. And they refused to open their country up to immigration because they wanted to remain Japanese.
So it won't be like that.
I understand that the reasons are not the same but the outcome is going to be similar.
Inflation, spending freezes and tax hikes=stagnation.