public static boolean isRendererWithInsets(ListCellRenderer<?> comboRenderer) {
    return comboRenderer instanceof ExperimentalUI.NewUIComboBoxRenderer
           || comboRenderer instanceof ComboBoxWithWidePopup<?>.AdjustingListCellRenderer r && r.delegate instanceof ExperimentalUI.NewUIComboBoxRenderer;
  }
public static boolean isRendererWithInsets(ListCellRenderer<?> comboRenderer)