Will this be okay?
```
System.Xml.XmlElement xmlNode = data.MigratedNodes.ElementAt(0);
var element = MigrationManager.CloneAndChangeType(xmlNode, "DSCoreNodesUI.Logic.If");
NodeMigrationData migrationData = new NodeMigrationData(data.Document);
migrationData.AppendNode(element);
return migrationData;
```