ChildAttributes (int newChildIndex) { List<Block> subBlocks = getSubBlocks(); if (newChildIndex > 0) { Block block = subBlocks.get(newChildIndex - 1); if (block instanceof GroovyBlock) { PsiElement anchorPsi = ((GroovyBlock)block).getNode().getPsi(); if (anchorPsi instanceof GrCaseSection) { boolean finished = GroovyIndentProcessor.isFinishedCase((GrCaseSection)anchorPsi, Integer.MAX_VALUE); Indent indent = GroovyIndentProcessor.getSwitchCaseIndent(settings); int indentSize = 0; CommonCodeStyleSettings.IndentOptions options = settings.getIndentOptions(); if (options != null) { indentSize = options.INDENT_SIZE; } if (!finished) { indent = getSpaceIndent((indent.getType() == Type.NORMAL ? indentSize : 0) + indentSize); } return new ChildAttributes(indent, null); } } } return super.getChildAttributes(newChildIndex); }