Collection<VirtualFile> (Project project) { Set<VirtualFile> result = new LinkedHashSet<>(); LocalFileSystem fileSystem = LocalFileSystem.getInstance(); ScratchFileService app = ScratchFileService.getInstance(); for (RootType r : RootType.getAllRootTypes()) { ContainerUtil.addIfNotNull(result, fileSystem.findFileByPath(app.getRootPath(r))); } return result; }