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

    myReplaceAllCheckBox.setEnabled(count != 0);
  }
private void updateControls()