IntelliJ’s Run Button Isn’t Magic: What It Actually Does Behind the Scenes

Today I learned that IntelliJ’s Run button isn’t magic.