@NotNull
  @Override
  protected PsiElementPredicate getElementPredicate() {
    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;
    };
  }
@NotNull
  @Override
  protected PsiElementPredicate getElementPredicate()