void (ColoredTreeCellRenderer renderer) { renderer.setIcon(myDescription.getDetector().getFrameworkType().getIcon()); final Collection<? extends VirtualFile> files = myDescription.getRelatedFiles(); final VirtualFile firstFile = ContainerUtil.getFirstItem(files); LOG.assertTrue(firstFile != null); if (files.size() == 1) { renderer.append(firstFile.getName()); appendDirectoryPath(renderer, firstFile.getParent()); } else { String commonName = firstFile.getName(); VirtualFile commonParent = firstFile.getParent(); for (VirtualFile file : files) { if (commonName != null && !commonName.equals(file.getName())) { commonName = null; } if (commonParent != null && !commonParent.equals(file.getParent())) { commonParent = null; } } renderer.append(ProjectBundle.message("comment.0.1.files", files.size(), commonName != null ? commonName : firstFile.getFileType().getDefaultExtension())); if (commonParent != null) { appendDirectoryPath(renderer, commonParent); } } }