...in the U.S., H-1B visa holders paid the payroll tax (Social Security), but were not eligible to receive benefits from the program... so American companies got cheap labor, and Social Security got a shot in the arm.
The hurdles are higher here, but if Japan were to import labor on the scale that America did over the last eight years, it might help this pension situation.