Smart Cast cannot be sure that `token.value` retur...
# intellij
g
Smart Cast cannot be sure that
token.value
returns stable value (maybe it returns null or non-null randomly for example,
val
is just getter) So, to solve it just assign
token.value
to local variable and use it instead