@ApiStatus.Internal
  protected boolean isNewBorderSupported(@NotNull JComboBox<?> comboBox) {
    ComboBoxUI ui = comboBox.getUI();

    if (!(comboBox.getBorder() instanceof DarculaComboBoxBorder)) {
      return false;
    }

    // Overridden ui means possible legacy paint (we don't know about paint details, so it's safer to keep custom paint)
    if (!(ui instanceof DarculaComboBoxUI) || ui.getClass() != DarculaComboBoxUI.class) {
      return false;
    }

    // Some UI customizations are not supported by DarculaComboBoxBorderNew for now. Can be implemented later when needed
    if (myArc != COMPONENT_ARC.getFloat()
        || !(myBorderCompensation instanceof JBInsets && myBorderCompensation.equals(JBUI.insets(DEFAULT_BORDER_COMPENSATION)))) {
      return false;
    }

    return true;
  }
@ApiStatus.Internal
  protected boolean isNewBorderSupported(@NotNull JComboBox<?> comboBox)