MarkdownPsiElement (@NotNull PsiElement textElement) { int level = sanitizeHeaderLevel(getLevelFunction().fun(0)); return MarkdownPsiElementFactory.createHeader(textElement.getProject(), textElement.getText(), level); }