void (Graphics g) { super.paintComponent(g); int count = getComponentCount() - 1; if (count > 0) { int x2 = getWidth() - JBUIScale.scale(16); int y = 0; g.setColor(JBColor.namedColor("Notification.WelcomeScreen.separatorColor", new JBColor(0xD0D0D0, 0x717375))); for (int i = 0; i < count; i++) { Dimension size = getComponent(i).getPreferredSize(); y += size.height + VERTICAL_GAP; g.drawLine(JBUIScale.scale(16), y, x2, y); } } }