JPanel (@NotNull NotificationType notificationType, boolean forToolWindow) { JPanel row = new JPanel(); row.setLayout(new BoxLayout(row, BoxLayout.X_AXIS)); for (int i = 0; i <= 10; i++) { LayeredIcon icon = IdeNotificationArea.createIconWithNotificationCount(row, notificationType, i, forToolWindow); JBLabel label = new JBLabel(icon); label.setMaximumSize(new JBDimension(30, 20)); label.setMinimumSize(new JBDimension(30, 20)); row.add(label); } return row; }