public void ProcessElement(XElement element) { if (!IsEnabled) return; if (!element.HasElements) return; if (ParentNodeNames.Any(match => match.IsMatch(element.Name))) { ReorderChildNodes(element); } }