void () { MavenDomProjectModel project = getSelectedProject(); int count = myOccurrencesCountFunction.fun(project).size(); myReplaceAllCheckBox.setText(RefactoringBundle.message("replace.all.occurences", count)); myReplaceAllCheckBox.setEnabled(count != 0); }