Set<VirtualFile> () { if (isWorkspaceModelIntegrationEnabled()) return Collections.emptySet(); ScratchFileService instance = getInstance(); LocalFileSystem fileSystem = LocalFileSystem.getInstance(); Set<VirtualFile> result = CollectionFactory.createSmallMemoryFootprintSet(); for (RootType rootType : RootType.getAllRootTypes()) { if (rootType.isHidden()) continue; ContainerUtil.addIfNotNull(result, fileSystem.findFileByPath(instance.getRootPath(rootType))); } return result; }