void (@NotNull JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) { if (value instanceof FindPopupItem) { UsagePresentation presentation = ((FindPopupItem)value).getPresentation(); if (presentation != null) { TextChunk[] text = presentation.getText(); // line number / file info String fileString = presentation.getFileString(); String prevFileString = findPrevFile(table, row, column); SimpleTextAttributes attributes = Objects.equals(fileString, prevFileString) ? REPEATED_FILE_ATTRIBUTES : ORDINAL_ATTRIBUTES; append(StringUtil.trimMiddle(fileString, 60), attributes); if (text.length > 0) append(" " + text[0].getText(), ORDINAL_ATTRIBUTES); } } setBorder(null); }