void (@NotNull ActionContext context, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { Document document = startElement.getContainingFile().getViewProvider().getDocument(); if (document == null) return; TextRange range = startElement.getTextRange(); document.replaceString(range.getStartOffset(), range.getEndOffset(), "* <p>"); }