void () { final boolean nameValid = myValidator.isNameValid(getName(), getProject()); setOKActionEnabled(nameValid); setErrorText(!nameValid ? PyPsiBundle.message("refactoring.introduce.name.error") : null, myNameComboBox); }