void () { if (myType1 == GroovyTokenTypes.kSWITCH && myType2 == GroovyTokenTypes.mLPAREN) { createSpaceInCode(mySettings.SPACE_BEFORE_SWITCH_PARENTHESES); } else if (isWithinParentheses()) { createSpaceInCode(mySettings.SPACE_WITHIN_SWITCH_PARENTHESES); } else if (myType2 == GroovyTokenTypes.mLCURLY) { createSpaceBeforeLBrace(mySettings.SPACE_BEFORE_SWITCH_LBRACE, mySettings.BRACE_STYLE, null, mySettings.KEEP_SIMPLE_BLOCKS_IN_ONE_LINE); } else if (isWithinBraces()) { createLF(true); } }