We cannot diagnose anything we are only pet parents not Vets, your kitty really needs to have a Vet look at the swelling to determine what is going on, sounds like it could be a cyst or infection from a wound, of course the worst possibility is a tumor.
Please take. Your kitty in ASAP