@Override
    public void done(@NotNull PsiBuilder builder, @Nullable PsiBuilder.Marker beforeMarker, boolean incomplete) {
      var myElementType = getHtmlTagElementType(this, myItemsStack.size() + 1);
      if (beforeMarker == null) {
        if (incomplete && isEndTagRequired(this)) {
          builder.error(XmlPsiBundle.message("xml.parsing.named.element.is.not.closed", getOriginalName()));
        }
        startMarker.done(myElementType);
      }
      else {
        if (incomplete && isEndTagRequired(this)) {
          beforeMarker.precede()
            .errorBefore(XmlPsiBundle.message("xml.parsing.named.element.is.not.closed", getOriginalName()), beforeMarker);
        }
        startMarker.doneBefore(myElementType, beforeMarker);
      }
    }
@Override
    public void done(@NotNull PsiBuilder builder, @Nullable PsiBuilder.Marker beforeMarker, boolean incomplete)