void (@NotNull GrDoWhileStatement statement) { if (myType1 == KW_DO) { createSpaceBeforeLBrace( mySettings.SPACE_BEFORE_DO_LBRACE, mySettings.BRACE_STYLE, myChild1.getTextRange(), mySettings.KEEP_SIMPLE_BLOCKS_IN_ONE_LINE ); } else if (myType2 == KW_WHILE) { if (mySettings.WHILE_ON_NEW_LINE) { createLF(true); } else { createSpaceInCode(mySettings.SPACE_BEFORE_WHILE_KEYWORD); } } else if (myType2 == T_LPAREN) { createSpaceInCode(mySettings.SPACE_BEFORE_WHILE_PARENTHESES); } else if (isWithinParentheses()) { createSpaceInCode(mySettings.SPACE_WITHIN_WHILE_PARENTHESES); } else { createSpacingBeforeElementInsideControlStatement(); } }