List<String> (@NotNull OrderRootType type) { if (myDisposed) return Collections.emptyList(); VirtualFilePointerContainer container = myRoots.get(type); final List<VirtualFilePointer> pointers = container == null ? Collections.emptyList() : container.getList(); List<String> invalidPaths = null; for (VirtualFilePointer pointer : pointers) { if (!pointer.isValid()) { if (invalidPaths == null) { invalidPaths = new SmartList<>(); } invalidPaths.add(pointer.getUrl()); } } return ContainerUtil.notNullize(invalidPaths); }