@NotNull
  @Override
  public TextRange processText(@NotNull PsiFile source, @NotNull TextRange rangeToReformat, @NotNull CodeStyleSettings settings) {
    if (source instanceof GroovyFile) {
      return new GroovyBraceEnforcer(settings).processText(((GroovyFile)source), rangeToReformat);
    }
    else {
      return rangeToReformat;
    }
  }
@NotNull
  @Override
  public TextRange processText(@NotNull PsiFile source, @NotNull TextRange rangeToReformat, @NotNull CodeStyleSettings settings)