https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.openxmlelement.insertbeforeself?view=openxml-3.0.1
OpenXmlElement.InsertBeforeSelfT(T) Method (DocumentFormat.OpenXml) | Microsoft Learn
Inserts the specified element immediately before the current element.
methodopenxmlmicrosoftlearn