@Override
  protected void customizeCellRenderer(@NotNull JList<? extends RegExpInspectionConfiguration.InspectionPattern> list,
                                       RegExpInspectionConfiguration.InspectionPattern value,
                                       int index,
                                       boolean selected,
                                       boolean hasFocus) {
    final FileType fileType = value.fileType();
    setIcon((fileType == null) ? AllIcons.FileTypes.Any_type : fileType.getIcon());
    final String regExp = value.regExp();
    final String replacement = value.replacement();
    append("/", SimpleTextAttributes.GRAY_ATTRIBUTES);
    if (replacement != null) {
      append(shortenTextWithEllipsis(regExp, 49, 0, true), SimpleTextAttributes.REGULAR_ATTRIBUTES);
      append("/ ⇨ '", SimpleTextAttributes.GRAY_ATTRIBUTES);
      append(shortenTextWithEllipsis(replacement, 49, 0, true), SimpleTextAttributes.REGULAR_ATTRIBUTES);
      append("'", SimpleTextAttributes.GRAY_ATTRIBUTES);
    }
    else {
      append(shortenTextWithEllipsis(regExp, 100, 0, true), SimpleTextAttributes.REGULAR_ATTRIBUTES);
      append("/", SimpleTextAttributes.GRAY_ATTRIBUTES);
    }
    setEnabled(list.isEnabled());
  }
}
@Override
  protected void customizeCellRenderer(@NotNull JList<? extends RegExpInspectionConfiguration.InspectionPattern> list,
                                       RegExpInspectionConfiguration.InspectionPattern value,
                                       int index,
                                       boolean selected,
                                       boolean hasFocus)