"Sorry buddy, I didn't see you."
It's not much, but it's a fuckload better than having a cigarette butt flicked in your face.
You'll be so surprised you may even console the wayward ship's captain.
"Don't worry about it. I've had worse."
BONUS TIP: Spend all afternoon regretting not saying:
"Did you look?"