void (String item, HashSet<String> invalid, EqualsHashCodeTemplatesManager manager, ComboBox<String> comboBox) { if (invalid.contains(item)) { TemplateResource template = manager.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"), comboBox); } else { setErrorText(JavaBundle.message("dialog.message.template.not.found"), comboBox); } } else { setErrorText(null, comboBox); } }