Update _text_from_first_responder

Code style, documentation and #noinspection fixes as requested