void (boolean isLbrace) { ASTNode node = myParent.getNode().findChildByType(JavaTokenType.LBRACE); final int startOffset; if (node == null) { startOffset = myParent.getTextOffset(); } else { startOffset = node.getTextRange().getStartOffset(); } int spaces = myJavaSettings.SPACE_INSIDE_ONE_LINE_ENUM_BRACES ? 1 : 0; TextRange textRange = new TextRange(startOffset, myParent.getTextRange().getEndOffset()); int blankLinesCount = isLbrace ? mySettings.KEEP_BLANK_LINES_IN_DECLARATIONS : mySettings.KEEP_BLANK_LINES_BEFORE_RBRACE; myResult = Spacing.createDependentLFSpacing(spaces, spaces, textRange, mySettings.KEEP_LINE_BREAKS, blankLinesCount); }