call addCurrentTextToHistory() directly because it can be overridden (IDEA-CR-3607)