void (PaintAwarePanel canvas, int indentLevel) { myServiceDirectoryLabel = new JBLabel(GradleBundle.message("gradle.settings.text.user.home")); myServiceDirectoryPathField = GradleRuntimeTargetUI .targetPathFieldWithBrowseButton(myInitialSettings.getProject(), GradleBundle.message("gradle.settings.text.user.home.dialog.title")); myServiceDirectoryLabel.setLabelFor(myServiceDirectoryPathField); canvas.add(myServiceDirectoryLabel, ExternalSystemUiUtil.getLabelConstraints(indentLevel)); canvas.add(myServiceDirectoryPathField, ExternalSystemUiUtil.getFillLineConstraints(indentLevel)); myServiceDirectoryHint = addComment( canvas, XmlStringUtil.wrapInHtml(GradleBundle.message("gradle.settings.text.user.home.hint")), ExternalSystemUiUtil.getCommentConstraints(indentLevel) ); }