void (ItemListener itemListener, GridBagConstraints gbConstraints, JPanel panel) { if (myOccurrencesCount > 1) { myCbReplaceAll = new NonFocusableCheckBox(); myCbReplaceAll.setText(JavaRefactoringBundle.message("replace.all.occurrences.of.expression.0.occurrences", myOccurrencesCount)); gbConstraints.gridy++; panel.add(myCbReplaceAll, gbConstraints); myCbReplaceAll.addItemListener(itemListener); if (myIsInvokedOnDeclaration) { myCbReplaceAll.setEnabled(false); myCbReplaceAll.setSelected(true); } } }