String () { if (myDirectories.size() + myDirectoriesWithSubdirectories.size() == 1) { Set<? extends VirtualFile> dirs = myDirectories.size() == 1 ? myDirectories : myDirectoriesWithSubdirectories; VirtualFile root = Objects.requireNonNull(ContainerUtil.getFirstItem(dirs)); return AnalysisBundle.message("display.name.directory.0", root.getName()); } Iterable<VirtualFile> allDirs = ContainerUtil.concat(myDirectories, myDirectoriesWithSubdirectories); return AnalysisBundle.message("display.name.directories.0", StringUtil.join(allDirs, file -> "'" + file.getName() + "'", ", ")); }