Only real way is to have two Intellij versions sitting side by side on your machine eg. 2024.1.1 and 2023.1.1. That's a bit clunky I know but it does allow you to open two instances.