void (ColoredListCellRenderer renderer) { if (myFrameworkType != null) { renderer.setIcon(myFrameworkType.getIcon()); renderer.append(myFrameworkType.getPresentableName()); if (myFile != null) { renderer.append(ProjectBundle.message("framework.detection.in.0", myFile.getName())); renderer.append(" (" + myFile.getPresentableUrl() + ")", SimpleTextAttributes.GRAY_ATTRIBUTES); } } else { renderer.setIcon(VirtualFilePresentation.getIcon(myFile)); renderer.append(myFile.getName()); renderer.append(" (" + myFile.getPresentableUrl() + ")", SimpleTextAttributes.GRAY_ATTRIBUTES); } }