public <T> ColoredListCellRenderer<T> forList() {
    return new ColoredListCellRenderer<>() {
      @Override
      protected void customizeCellRenderer(@NotNull JList<? extends T> list, T value, int index, boolean selected, boolean focused) {
        customize(this, value);
      }
    };
  }
public <T> ColoredListCellRenderer<T> forList()