Did you come up with that out of thin air?
Nope. We don't live in a sci-fi universe with easy interstellar travel. Space is big.
Really big. That means that if we want to travel between the stars at a reasonable rate (say 10% the speed of light), we'll need to use a
lot of energy. And by a
lot, I mean a percentage of a star's output... assuming you want to move ten thousand people, the stuff necessary to keep them alive for several centuries (since we're talking about getting out of the range of a supernova or gamma ray burst), the supplies to build colonies when the arrive at their destination, and most important of all:
something to slow them down at their destination.
A Dyson Swarm? You certainly do not need such thing to either migrate or terraform a viable planet, for reference sake, a Dyson Swarm has been estimated to need all of Mercury's resources to be built.
Terraform a planet in
our own solar system? No. Moving the
entire population out of the solar system? YES... unless you're willing to take 50,000 years to travel a handful of light years, which kind of defeats the purpose of evacuating the solar system in the first place.
The bottom line is, interstellar colonization isn't something a civilization does unless they're
already well on their way to becoming a K2 civilization, with enough free power available to launch colony ships at distant stars. Chemical rockets aren't sufficient to do it. Fusion rockets
might be sufficient to help
stop you at your destination, but you face the old "the fuel needed to launch the fuel needed to launch the fuel" problem if you want to use them to
launch ships into space. Anti-matter
would be sufficient... but to manufacture the quantities necessary to launch ships between the stars, you'll need a Dyson Swarm. What you really need is a
lot of huge lasers powered by huge solar panels around your star.
Which is
why futurists, when discussing how to escape destruction by a supernova or gamma-ray burst, say that the
easiest way to do so is move the entire solar system rather than the people living in it. A civilization with enough power to evacuate an entire solar system already
has the infrastructure to move the star in the first place. If a civilization doesn't have that infrastructure, then the best they can hope for is that a handful of colonists will escape the destruction.