private static boolean hasBlockLiterals(List<? extends PsiLanguageInjectionHost.Shred> shreds) {
    for (PsiLanguageInjectionHost.Shred shred : shreds) {
      PsiLanguageInjectionHost host = shred.getHost();
      if (host instanceof PsiLiteralExpression && ((PsiLiteralExpression)host).isTextBlock()) return true;
      if (host instanceof PsiFragment && ((PsiFragment)host).isTextBlock()) return true;
    }
    return false;
  }
private static boolean hasBlockLiterals(List<? extends PsiLanguageInjectionHost.Shred> shreds)