PsiElementPredicate () { return element -> { if (!(element instanceof GrString)) return false; if (ErrorUtil.containsError(element)) return false; for (GrStringInjection child : ((GrString)element).getInjections()) { if (GrStringUtil.checkGStringInjectionForUnnecessaryBraces(child)) return true; } return false; }; }