private static ListCellRenderer<FileDescriptor> createRenderer(Project project) {
    ListCellRenderer<FileDescriptor> mainRenderer = new ColoredListCellRenderer<>() {
      @Override
      protected void customizeCellRenderer(@NotNull JList<? extends FileDescriptor> list,
                                           FileDescriptor value, int index, boolean selected, boolean hasFocus) {
        setBackground(UIUtil.getListBackground(selected, true));
        if (value != null) {
          @NotNull TargetPresentation targetPresentation = value.element;
          setIcon(getIconForFile(value.file, project));
          append(targetPresentation.getPresentableText());
          String presentation = targetPresentation.getContainerText();
          if (presentation != null) {
            append("  ");
            append(StringUtil.trimStart(StringUtil.trimEnd(presentation, ")"), "("), SimpleTextAttributes.GRAYED_ATTRIBUTES);
          }
        }
      }
    };
    ListCellRenderer<FileDescriptor> rightRenderer = new SimpleListCellRenderer<>() {
      @Override
      public void customize(@NotNull JList<? extends FileDescriptor> list,
                            FileDescriptor value, int index, boolean selected, boolean hasFocus) {
        setForeground(UIUtil.getListForeground(selected, true));
        if (value != null) {
          setText(value.element.getLocationText());
          setIcon(value.element.getLocationIcon());
        }
      }
    };
    return new LeftRightRenderer<>(mainRenderer, rightRenderer);
  }
private static ListCellRenderer<FileDescriptor> createRenderer(Project project)