ListItemPresentation (T item) { VirtualFile file = getContainingFile(item); Color bgColor = file == null ? null : getFileBackgroundColor(myProject, file); return new ListItemPresentation(getItemText(item), getItemIcon(item), bgColor); }