void (@NotNull PaintAwarePanel canvas, int indentLevel) { myParallelModelFetchCheckBox = new JBCheckBox(GradleBundle.message("gradle.settings.text.parallelModelFetch")); myParallelModelFetchWarning = new JBLabel(AllIcons.General.Warning); myParallelModelFetchWarning.setToolTipText(GradleBundle.message("gradle.settings.text.parallelModelFetch.warning")); myParallelModelFetchPanel = new JPanel(ListLayout.horizontal(ExternalSystemUiUtil.INSETS, Alignment.CENTER, GrowPolicy.NO_GROW)); myParallelModelFetchPanel.add(myParallelModelFetchCheckBox); myParallelModelFetchPanel.add(myParallelModelFetchWarning); canvas.add(myParallelModelFetchPanel, ExternalSystemUiUtil.getFillLineConstraints(indentLevel)); myParallelModelFetchHint = addComment( canvas, GradleBundle.message("gradle.settings.text.parallelModelFetch.hint"), ExternalSystemUiUtil.getCheckBoxCommentConstraints(indentLevel, myParallelModelFetchCheckBox) ); }