void (@NotNull GrForStatement forStatement) { if (myType2 == GroovyTokenTypes.mLPAREN) { createSpaceInCode(mySettings.SPACE_BEFORE_FOR_PARENTHESES); } else if (myType2 == GroovyElementTypes.BLOCK_STATEMENT || isOpenBlock(myType2)) { if (myType2 == GroovyElementTypes.BLOCK_STATEMENT) { createSpaceBeforeLBrace(mySettings.SPACE_BEFORE_FOR_LBRACE, mySettings.BRACE_STYLE, new TextRange(myParent.getTextRange().getStartOffset(), myChild1.getTextRange().getEndOffset()), mySettings.KEEP_SIMPLE_BLOCKS_IN_ONE_LINE); } else if (mySettings.KEEP_CONTROL_STATEMENT_IN_ONE_LINE) { createDependentLFSpacing(true, true, myParent.getTextRange()); } else { createLF(true); } } else if (myType1 == GroovyTokenTypes.mRPAREN) { createSpacingBeforeElementInsideControlStatement(); } else { processParentheses( mySettings.SPACE_WITHIN_FOR_PARENTHESES, null, mySettings.FOR_STATEMENT_LPAREN_ON_NEXT_LINE, mySettings.FOR_STATEMENT_RPAREN_ON_NEXT_LINE ); } }