I have a HW90 with .177, .22 and .25 barrels
Dependent on the age of your 90?....if yours is a relatively modern 90, with only one cocking lever pivot point in the breechblock, then it's and easy job to swap the barrels, no different to an 80,85,95,98...and any of the barrels from those guns will fit straight on a modern 90.
One thing, you mention your gun is .177 yet you wish to fit a .20/22 barrel...well, if your gun is close to the limit with the .177 barrel on it you may have to let a bit of air out of the ram to reduce the power as it's likely to go over with a bigger cal barrel.