void (@NotNull Collection<? extends DataNode<E>> toImport, @Nullable ProjectData projectData, @NotNull Project project, @NotNull IdeModifiableModelsProvider modelsProvider) { for (DataNode<E> moduleDataNode : toImport) { final Module module = moduleDataNode.getUserData(MODULE_KEY); if (module == null) continue; final Map<OrderEntry, OrderAware> orderAwareMap = moduleDataNode.getUserData(ORDERED_DATA_MAP_KEY); if (orderAwareMap != null) { rearrangeOrderEntries(orderAwareMap, modelsProvider.getModifiableRootModel(module)); } moduleDataNode.putUserData(MODULE_KEY, null); moduleDataNode.putUserData(ORDERED_DATA_MAP_KEY, null); } for (Module module : modelsProvider.getModules()) { module.putUserData(MODULE_DATA_KEY, null); } }