LeafElement (@NotNull IElementType type, @NotNull CharSequence text) { ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(type.getLanguage()); if (parserDefinition != null && parserDefinition.getCommentTokens().contains(type)) { return createComment(type, text); } return new LeafPsiElement(type, text); }