diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/processors/GroovyIndentProcessor.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/processors/GroovyIndentProcessor.java index 32b0d1631ec6..a470ab6b348e 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/processors/GroovyIndentProcessor.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/processors/GroovyIndentProcessor.java @@ -293,6 +293,9 @@ public class GroovyIndentProcessor extends GroovyElementVisitor { @Override public void visitOpenBlock(GrOpenBlock block) { + final IElementType type = block.getNode().getElementType(); + if (type != OPEN_BLOCK && type != CONSTRUCTOR_BODY) return; + if (myChildType != mLCURLY && myChildType != mRCURLY) { myResult = Indent.getNormalIndent(); }