Indent (@NotNull final GroovyBlock parentBlock, @NotNull final ASTNode child) { myChildType = child.getElementType(); if (parentBlock instanceof ClosureBodyBlock) { if (myChildType == GroovyEmptyStubElementTypes.PARAMETER_LIST) { return getNoneIndent(); } else if (myChildType != GroovyTokenTypes.mLCURLY && myChildType != GroovyTokenTypes.mRCURLY) { return getNormalIndent(); } } if (GSTRING_TOKENS_INNER.contains(myChildType)) { return getAbsoluteNoneIndent(); } final PsiElement parent = parentBlock.getNode().getPsi(); if (parent instanceof GroovyPsiElement) { myBlock = parentBlock; myChild = child.getPsi(); ((GroovyPsiElement)parent).accept(this); if (myResult != null) return myResult; } return getNoneIndent(); }