Almost right, but here's the way to do it without constant:
```
if (leaf instanceof LeafPsiElement && ((LeafPsiElement)leaf).getElementType() == JetTokens.MUL) {
}
```