void (CompositePackagingElement<?> oldParent, CompositePackagingElement<?> newParent, @NotNull Project project) { for (PackagingElement<?> child : oldParent.getChildren()) { newParent.addOrFindChild(copyWithChildren(child, project)); } }