protected PsiFile createFileFromTemplate(final String name, final FileTemplate template, final PsiDirectory dir) {
    return createFileFromTemplate(name, template, dir, getDefaultTemplateProperty(), true);
  }
protected PsiFile createFileFromTemplate(final String name, final FileTemplate template, final PsiDirectory dir)