void (GridBagConstraints gbConstraints, JPanel panel, JavaRefactoringSettings settings) { if(myIsLocalVariable && !myIsInvokedOnDeclaration) { myCbDeleteLocalVariable = new StateRestoringCheckBox(); myCbDeleteLocalVariable.setText(JavaRefactoringBundle.message("delete.variable.declaration")); myCbDeleteLocalVariable.setFocusable(false); gbConstraints.gridy++; panel.add(myCbDeleteLocalVariable, gbConstraints); myCbDeleteLocalVariable.setSelected(settings.INTRODUCE_PARAMETER_DELETE_LOCAL_VARIABLE); gbConstraints.insets = JBUI.insets(0, 0, 4, 8); if(myHasInitializer) { myCbUseInitializer = new StateRestoringCheckBox(); myCbUseInitializer.setText(JavaRefactoringBundle.message("use.variable.initializer.to.initialize.parameter")); myCbUseInitializer.setSelected(settings.INTRODUCE_PARAMETER_USE_INITIALIZER); myCbUseInitializer.setFocusable(false); gbConstraints.gridy++; panel.add(myCbUseInitializer, gbConstraints); } } }