JComponent () { myNameField = new NameSuggestionsField(myProject); FormBuilder formBuilder = FormBuilder.createFormBuilder() .addLabeledComponent(JavaRefactoringBundle.message("anonymousToInner.class.name.label.text"), myNameField); if (myShowCanBeStatic) { myCbMakeStatic = new NonFocusableCheckBox(JavaRefactoringBundle.message("anonymousToInner.make.class.static.checkbox.text")); myCbMakeStatic.setSelected(true); formBuilder.addComponent(myCbMakeStatic); } return formBuilder.getPanel(); }