void (@NotNull PsiElement element, @NotNull TokenConsumer consumer) { CustomFileTypeLexer lexer = new CustomFileTypeLexer(mySyntaxTable); String text = element.getText(); lexer.start(text); while (true) { IElementType tokenType = lexer.getTokenType(); if (tokenType == null) { break; } if (!isKeyword(tokenType)) { consumer.consumeToken(element, text, false, 0, new TextRange(lexer.getTokenStart(), lexer.getTokenEnd()), PlainTextSplitter.getInstance()); } lexer.advance(); } }