Tokenizer (PsiElement element) { if (element instanceof JsonPathStringLiteral) { return ourStringLiteralTokenizer; } if (element instanceof JsonPathId && element.getParent() instanceof JsonPathIdSegment) { return idLiteralTokenizer; } return super.getTokenizer(element); }