private static boolean isBeforeParagraphOrBlockTag(PsiElement element) {
    PsiElement nextSibling = skipWhitespacesAndLeadingAsterisksForward(element);
    if (nextSibling == null) return true;
    String text = nextSibling.getText();
    return isNullOrBlockTag(nextSibling) ||
           startsWithHtmlBlockTag(text) ||
           isNullOrBlockTag(nextSibling.getNextSibling());
  }
private static boolean isBeforeParagraphOrBlockTag(PsiElement element)