private static String getIncorrectTemplateMessage(String templateName, Project project) {
    return JavaBundle.message("psi.error.incorrect.class.template.message",
                             FileTemplateManager.getInstance(project).internalTemplateToSubject(templateName), templateName);
  }
private static String getIncorrectTemplateMessage(String templateName, Project project)