ASTNode (@NotNull IElementType root, @NotNull PsiBuilder builder) { final var rootMarker = builder.mark(); rootMarker.setCustomEdgeTokenBinders(WhitespacesBinders.GREEDY_LEFT_BINDER, WhitespacesBinders.GREEDY_RIGHT_BINDER); final var parsedTree = MarkdownParserManager.parseContent(builder.getOriginalText(), myFlavour); new PsiBuilderFillingVisitor(builder, true).visitNode(parsedTree); assert builder.eof(); rootMarker.done(root); return builder.getTreeBuilt(); }