It's used now only in ``Lexer``. 
So may be should I move it there as private method?