void (PaintAwarePanel content, int indentLevel) { myImportPanel = addComponentsGroup(null, content, indentLevel, panel -> { if (!dropResolveModulePerSourceSetCheckBox) { myModulePerSourceSetPanel = new JPanel(new GridBagLayout()); panel.add(myModulePerSourceSetPanel, ExternalSystemUiUtil.getFillLineConstraints(0).insets(0, 0, 0, 0)); myModulePerSourceSetPanel.add( myResolveModulePerSourceSetCheckBox = new JBCheckBox(GradleBundle.message("gradle.settings.text.module.per.source.set", getIDEName())), ExternalSystemUiUtil.getFillLineConstraints(indentLevel)); JBLabel myResolveModulePerSourceSetHintLabel = new JBLabel( XmlStringUtil.wrapInHtml(GradleBundle.message("gradle.settings.text.module.per.source.set.hint")), UIUtil.ComponentStyle.SMALL); myResolveModulePerSourceSetHintLabel.setIcon(AllIcons.General.BalloonWarning12); myResolveModulePerSourceSetHintLabel.setVerticalTextPosition(SwingConstants.TOP); myResolveModulePerSourceSetHintLabel.setForeground(UIUtil.getLabelFontColor(UIUtil.FontColor.BRIGHTER)); GridBag constraints = ExternalSystemUiUtil.getFillLineConstraints(indentLevel); constraints.insets.top = 0; constraints.insets.left += UIUtil.getCheckBoxTextHorizontalOffset(myResolveModulePerSourceSetCheckBox); myModulePerSourceSetPanel.add(myResolveModulePerSourceSetHintLabel, constraints); } if (!dropResolveExternalAnnotationsCheckBox) { panel.add( myResolveExternalAnnotationsCheckBox = new JBCheckBox(GradleBundle.message("gradle.settings.text.download.annotations")), ExternalSystemUiUtil.getFillLineConstraints(indentLevel)); } }); }