There are big gaps between
1. the start of the problem,
2. when the first signs start showing and
3. when the collapse hits.
Japan is at 2. 3 won't hit for a few decades more, likely around 2060 or so.
What makes this problem unintuitive unlike most problems is that once the beginning signs hit, it's too late to avoid 3 for at least some time. You can shorten the length of the collapse but it is happening.
Now let's think and simply.
We're in the year 2055.
If the problem in 2055 is that there aren't enough workers then that means the necessary children consistently weren't born starting some 80 to about some 30 years ago.
Importing immigrants or suddenly giving birth back in 2023 won't change that fact. The real problem had already happened even then.You can't change the past.
Japan didn't need those children in 2023+ for the problem in 2055. They didn't need those immigrants.
If you import the immigrants or have the children in 2023, it's to shorten the duration of the collapse not to avoid it. Japan could say they brought in a million immigrants tomorrow and literally nothing changes for 2055 prospects.
But by the time they do need those workers in 2055, they will need so much more of them (because of how exponential the population decline will be. See the table)