void (@NotNull GrTypeDefinition typeDefinition) { if (myType2 == GroovyEmptyStubElementTypes.CLASS_BODY) { if (typeDefinition instanceof GrAnonymousClassDefinition) { createSpaceProperty(mySettings.SPACE_BEFORE_CLASS_LBRACE, true, 100); //don't manually remove line feeds because this line is ambiguous } else { PsiElement nameIdentifier = typeDefinition.getNameIdentifierGroovy(); int dependenceStart = nameIdentifier.getTextRange().getStartOffset(); final TextRange range = new TextRange(dependenceStart, myChild1.getTextRange().getEndOffset()); createSpaceBeforeLBrace(mySettings.SPACE_BEFORE_CLASS_LBRACE, mySettings.CLASS_BRACE_STYLE, range, false); } } else if (myType2 == GroovyEmptyStubElementTypes.TYPE_PARAMETER_LIST) { createSpaceInCode(false); } else if (myType2 == GroovyElementTypes.ARGUMENTS) { manageSpaceBeforeCallLParenth(); } }