IDEA-101201 (awful GitHub login dialog fixed)
RUBY-13086: performance improvement
We have to add all text we've got at once to avoid overhead Document provides for every insertion (it fires document events and update UI)