Refactoring: Editor::markAllMisspellingsAndBadGrammarInRanges should be refactored.