@Override
  protected void customizeCellRenderer(@NotNull JList list, Object value, int index, boolean selected, boolean hasFocus) {
    if (value instanceof ItemWrapper wrapper) {
      wrapper.setupRenderer(this, myProject, selected);
      if (myAccessory != null) {
        wrapper.updateAccessoryView(myAccessory);
      }
    }
  }
@Override
  protected void customizeCellRenderer(@NotNull JList list, Object value, int index, boolean selected, boolean hasFocus)