Insets (final Component c) { var settings = UISettings.getInstance(); if (ExperimentalUI.isNewUI() && settings.getShowNavigationBar()) { if (settings.getNavBarLocation() == NavBarLocation.TOP) { return JBUI.CurrentTheme.NavBar.itemInsets(); } else { return JBUI.CurrentTheme.StatusBar.Breadcrumbs.navBarInsets(); } } else if (!settings.getShowMainToolbar()) { return JBUI.insets(1, 0, 1, 4); } return JBUI.insets(1, 0, 0, 4); }