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