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