void (@NotNull final JList list, final Object value, final int index, final boolean selected, final boolean hasFocus) { Usage usage = (Usage)value; UsagePresentation presentation = usage.getPresentation(); setIcon(presentation.getIcon()); VirtualFile virtualFile = getVirtualFile(usage); if (virtualFile != null) { append(virtualFile.getName() + ": ", SimpleTextAttributes.REGULAR_ATTRIBUTES); setIcon(virtualFile.getFileType().getIcon()); PsiFile psiFile = PsiManager.getInstance(myProject).findFile(virtualFile); if (psiFile != null) { setIcon(psiFile.getIcon(0)); } } TextChunk[] text = presentation.getText(); for (TextChunk textChunk : text) { SimpleTextAttributes simples = textChunk.getSimpleAttributesIgnoreBackground(); append(textChunk.getText(), simples); } }