private static boolean hasSnippet(List<? extends PsiLanguageInjectionHost.Shred> shreds) {
    for (PsiLanguageInjectionHost.Shred shred : shreds) {
      if (shred.getHost() instanceof PsiSnippetDocTag) return true;
    }
    return false;
  }
private static boolean hasSnippet(List<? extends PsiLanguageInjectionHost.Shred> shreds)