I'm all in favour of planning and order. I am working on what I might call insurance...procedures to adopt the next time something unexpected happens. Physically withdrawing from an unexpected trigger, where possible, is an example of what I'm trying to describe.
Last night, unfortunately, I was in a situation where physical withdrawal was possible but undesirable, at least to me: a dinner run by Chabad. Typically, Chabad holds a service followed by dinner, and the majority of students time their arrival to avoid the former but enjoy the latter. Among the students are the few (thank Gd) who dress immodestly. I would rather live in a free society than one with Saudi-style "modesty police", but the price of so doing is working out how to cope with immodesty. Mentally lecturing myself (what a pervert I am! I'm old enough to be her grandfather!) didn't help. What did help was, obviously, averting my gaze, concentrating on slow smooth breathing, and telling myself that the individual was simply a slave to current fashion and to be pitied.