boolean (@NotNull PsiElement element) { if (!(element instanceof GrLiteral)) return false; if (ErrorUtil.containsError(element)) return false; @NonNls final String text = element.getText(); if (text.charAt(0) != '"') return false; for (PsiElement child : element.getChildren()) { if (child instanceof GrStringInjection) { GrClosableBlock block = ((GrStringInjection)child).getClosableBlock(); if (block != null && !checkClosure(block)) return false; } } return true; }