I find it's like most things, largely confidence coupled with and gained from experience. You know something is going to work because you've done it before, screwed it up before, fixed it before, etc. When you're doing it for the first (several) times, early on, it's constant problem solving - hesitation, uncertainty,…