}
protected void customizeCellRenderer(JList list, Object value, int index, boolean selected, boolean hasFocus) {
VirtualFile virtualFile = (VirtualFile) value;
Module module = ModuleUtil.findModuleForFile(virtualFile, project);
if (module == null) {
append(virtualFile.getPath(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
} else {
VirtualFile contentRoot = getModuleContentRoot(module, virtualFile);
String relativePath = virtualFile.getPath().substring(contentRoot.getParent().getPath().length());
append("[" + module.getName() + "]", SimpleTextAttributes.REGULAR_ATTRIBUTES);
append(relativePath, SimpleTextAttributes.REGULAR_ATTRIBUTES);
}
setIcon(VirtualFileUtil.getIcon(virtualFile));
}