either in that moment, que extensive research or theme/symbolism/motif surfing and plotting
OR immediately from the top of my head because it "feels/fits/sounds right"
worse case scenario: no name at all, and they get stuck with a sad, sad placeholder instead for months to come