@Override
  public boolean acceptsFile(@NotNull VirtualFile file, @NotNull Project project) {
    FileType type = FileTypeManager.getInstance().getFileTypeByFileName(file.getNameSequence());
    if (type != UnknownFileType.INSTANCE) {
      return type instanceof LanguageFileType && ((LanguageFileType)type).getLanguage() instanceof TemplateLanguage;
    }
    // might be cheaper than file type detection
    return TemplateDataLanguageMappings.getInstance(project).getImmediateMapping(file) != null;
  }
@Override
  public boolean acceptsFile(@NotNull VirtualFile file, @NotNull Project project)