To hotswap with Intellij do Ctrl + Shift + F9 (default keybinds) in debug mode, but note that with a regular JDK you cannot hotswap new methods, classes, etc., but can add code to existing methods.
You could try out DCEVM which allows you to do those, it is what I personally use, but do note it...