Lexer (@NotNull ASTNode chameleon, @NotNull Project project, @NotNull Language parentLanguage) { final Language language = chameleon.getElementType().getLanguage(); final ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(language); return parserDefinition.createLexer(project); }