void (@NotNull GrMethod method) { if (myType2 == PARAMETER_LIST) { createSpaceInCode(mySettings.SPACE_BEFORE_METHOD_PARENTHESES); } else if (myType1 == PARAMETER_LIST && myType2 == GroovyStubElementTypes.THROWS_CLAUSE) { if (mySettings.THROWS_KEYWORD_WRAP == CommonCodeStyleSettings.WRAP_ALWAYS) { createLF(true); } else { createSpaceInCode(true); } } else if (isOpenBlock(myType2)) { PsiElement methodName = method.getNameIdentifier(); int dependencyStart = methodName == null ? myParent.getTextRange().getStartOffset() : methodName.getTextRange().getStartOffset(); createSpaceBeforeLBrace(mySettings.SPACE_BEFORE_METHOD_LBRACE, mySettings.METHOD_BRACE_STYLE, new TextRange(dependencyStart, myChild1.getTextRange().getEndOffset()), mySettings.KEEP_SIMPLE_METHODS_IN_ONE_LINE); } else if (myType2 == GroovyEmptyStubElementTypes.TYPE_PARAMETER_LIST) { createSpaceInCode(true); } }