PsiFile (String name, String templateName, PsiDirectory dir) { final FileTemplate template = FileTemplateManager.getInstance(dir.getProject()).getInternalTemplate(templateName); return createFileFromTemplate(name, template, dir); }