@Override
  public void customize(@NotNull JList<? extends Configuration> list,
                        Configuration value,
                        int index,
                        boolean selected,
                        boolean hasFocus) {
    final MatchOptions matchOptions = value.getMatchOptions();
    final LanguageFileType fileType = matchOptions.getFileType();
    setIcon((fileType == null) ? AllIcons.FileTypes.Unknown : fileType.getIcon());
    final String text;
    @NlsSafe final String searchPattern = collapseWhiteSpace(matchOptions.getSearchPattern());
    if (value instanceof ReplaceConfiguration) {
      text = SSRBundle.message("replace.configuration.display.text",
                               shortenTextWithEllipsis(searchPattern, 49, 0, true),
                               shortenTextWithEllipsis(collapseWhiteSpace(value.getReplaceOptions().getReplacement()), 49, 0, true));
    }
    else {
      text = shortenTextWithEllipsis(searchPattern, 100, 0, true);
    }
    setText(text);
    setEnabled(list.isEnabled());
  }
@Override
  public void customize(@NotNull JList<? extends Configuration> list,
                        Configuration value,
                        int index,
                        boolean selected,
                        boolean hasFocus)