void (final boolean spaceBeforeLbrace, int braceStyle, @Nullable TextRange dependantRange, boolean keepOneLine) { if (dependantRange != null && braceStyle == CommonCodeStyleSettings.NEXT_LINE_IF_WRAPPED) { int space = spaceBeforeLbrace ? 1 : 0; myResult = createNonLFSpace(space, dependantRange, false); } else if (braceStyle == CommonCodeStyleSettings.END_OF_LINE || braceStyle == CommonCodeStyleSettings.NEXT_LINE_IF_WRAPPED) { int space = spaceBeforeLbrace ? 1 : 0; myResult = createNonLFSpace(space, null, false); } else if (keepOneLine) { int space = spaceBeforeLbrace ? 1 : 0; myResult = Spacing.createDependentLFSpacing(space, space, myParent.getTextRange(), mySettings.KEEP_LINE_BREAKS, keepBlankLines()); } else { createLF(true); } }