private void updateErrorMessage() {
      String item = (String)myComboBox.getSelectedItem();
      if (myInvalidTemplates != null && myInvalidTemplates.contains(item)) {
        TemplateResource template =
          EqualsHashCodeTemplatesManager.getInstance().findTemplateByName(EqualsHashCodeTemplatesManager.toEqualsName(item));
        if (template != null) {
          String className = template.getClassName();
          setErrorText(className != null ? JavaBundle.message("dialog.message.class.not.found", className)
                                         : JavaBundle.message("dialog.message.template.not.applicable"), myComboBox);
        }
        else {
          setErrorText(JavaBundle.message("dialog.message.template.not.found"), myComboBox);
        }
      }
      else {
        setErrorText(null, myComboBox);
      }
    }
private void updateErrorMessage()