JLabel (@NlsContexts.PopupAdvertisement String bottomText, Border border, @JdkConstants.HorizontalAlignment int alignment) { JLabel label = new JLabel(); label.setText(bottomText); label.setHorizontalAlignment(alignment); label.setForeground(JBUI.CurrentTheme.Advertiser.foreground()); label.setBackground(JBUI.CurrentTheme.Advertiser.background()); label.setOpaque(true); label.setFont(RelativeFont.NORMAL.scale(JBUI.CurrentTheme.Advertiser.FONT_SIZE_OFFSET.get(), JBUIScale.scale(11f)).derive(StartupUiUtil.getLabelFont())); if (bottomText != null) { label.setBorder(border); } return label; }