implement findTokenType method
document findTokenType method