Set<FilePath> () { Set<FilePath> result = newFilePathsSet(); for (Set<FilePath> paths : myDirtyFiles.values()) { result.addAll(paths); } for (Set<FilePath> paths : myDirtyFiles.values()) { for (FilePath filePath : paths) { VirtualFile vFile = filePath.getVirtualFile(); if (vFile != null && vFile.isValid() && vFile.isDirectory()) { for (VirtualFile child : vFile.getChildren()) { result.add(VcsUtil.getFilePath(child)); } } } } return result; }