public static FileTemplateManager getInstance(@NotNull Project project){
    return project.getService(FileTemplateManager.class).checkInitialized();
  }
public static FileTemplateManager getInstance(@NotNull Project project)