PsiElement (@NotNull PsiElement source, @NotNull CodeStyleSettings settings) { if (source instanceof GroovyPsiElement) { return new GroovyBraceEnforcer(settings).process(((GroovyPsiElement)source)); } else { return source; } }