JComponent () { final JPanel panel = new JPanel(new GridBagLayout()); final GridBagConstraints gc = new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, JBUI.insets(5, 5, 0, 0), 0, 0); appendMigrationTypeEditor(panel, gc); LabeledComponent<ScopeChooserCombo> scopeChooserComponent = new LabeledComponent<>(); scopeChooserComponent.setComponent(myScopeChooserCombo); scopeChooserComponent.setText(JavaRefactoringBundle.message("type.migration.choose.scope.title")); panel.add(scopeChooserComponent, gc); return panel; }