void (final OrderRootType orderRootType, final String @NotNull [] urls) { VirtualFilePointerContainer container = myOrderRootPointerContainers.get(orderRootType); if (container == null) { if (urls.length == 0) { // do not store if no container and nothing to store // otherwise our module extension model will be changed and it can leads to unnecessary model commit // (that in turn can mask issues like https://youtrack.jetbrains.com/issue/IDEA-166461) return; } container = VirtualFilePointerManager.getInstance().createContainer(this, null); myOrderRootPointerContainers.put(orderRootType, container); } else { container.clear(); } for (final String url : urls) { container.add(url); } }