List<ValidationInfo> () { String templateName = myTemplateNameTextField.getText(); if (!StringUtil.isJavaIdentifier(templateName)) { return Collections.singletonList(new ValidationInfo(CodeInsightBundle.message("message.template.key.must.be.an.identifier"), myTemplateNameTextField)); } return super.doValidateAll(); }