Z Max endstop setup

How have others worked out a Z Max Endstop setup? I see no real easy way to mount a switch since there is nothing that is at the max height to mount a switch on. I see how a min endstop would work but don’t want that.