I focus on avoiding the situation as much as I can.
I have Harbor Freight cheap-China reflective white and red tape on the back of the helmet. I might be moving up to the DOT-C2 approved stuff Walmart has in the automotive section (like you see on the back of truck trailers) for more visibility at night. At night, that stuff lights up like mad, especially with hi-beams.
When I see someone behind me, because I’m always watching those mirrors, I give the front brake a little squeeze for a few to get the rear-brake modulator to do it’s thing. Usually gets noticed.
I leave about one car length between me and the car ahead of me at a light. I figure those few feet are enough to move and split between cars if I hear locking brakes, or at least buy the driver behind me skidding a few more feet to stop if I move up.
I’ve never had it happen, but it still worries me.