public static @NotNull Insets getListInsets(boolean titleVisible, boolean adVisible) {
    if (!ExperimentalUI.isNewUI()) {
      return UIUtil.getListViewportPadding(adVisible);
    }

    int topInset = titleVisible ? 0 : JBUI.CurrentTheme.Popup.bodyTopInsetNoHeader();
    int bottomInset = adVisible ? JBUI.CurrentTheme.Popup.bodyBottomInsetBeforeAd() : JBUI.CurrentTheme.Popup.bodyBottomInsetNoAd();
    return new JBInsets(topInset, 0, bottomInset, 0);

  }
public static @NotNull Insets getListInsets(boolean titleVisible, boolean adVisible)