moved to AddNewTopLevelElementExtension