private Indent getIndentForCodeBlock(ASTNode child, int childrenIndent) {
    if (child.getElementType() == JavaElementType.CODE_BLOCK
        && (getBraceStyle() == CommonCodeStyleSettings.NEXT_LINE_SHIFTED
            || getBraceStyle() == CommonCodeStyleSettings.NEXT_LINE_SHIFTED2))
    {
      return Indent.getNormalIndent();
    }

    return isRBrace(child) ? Indent.getNoneIndent() : getCodeBlockInternalIndent(childrenIndent);
  }
private Indent getIndentForCodeBlock(ASTNode child, int childrenIndent)