CheckClass: Refactoring. Use Token::variable(). Ticket: #4535