List<VirtualFile> () { List<VirtualFile> files = new ArrayList<>(); List<String> paths; synchronized (state) { paths = state.changedPaths.isEmpty() ? Collections.emptyList() : new ArrayList<>(state.changedPaths); } LocalFileSystem lfs = LocalFileSystem.getInstance(); for (String path : paths) { VirtualFile file = lfs.findFileByPath(path); if (file != null) { files.add(file); } } return files; }