private void createSpaceWithLinefeedIfListWrapped(@NotNull PsiExpressionList list, boolean space) {
    PsiExpression[] expressions = list.getExpressions();
    int length = expressions.length;
    assert length > 1;

    List<TextRange> ranges = new ArrayList<>();
    for (int i = 0; i < length - 1; i++) {
      int startOffset = expressions[i].getTextRange().getEndOffset();
      int endOffset = expressions[i + 1].getTextRange().getStartOffset();
      ranges.add(new TextRange(startOffset, endOffset));
    }

    int spaces = space ? 1 : 0;
    myResult = Spacing.createDependentLFSpacing(spaces, spaces, ranges, mySettings.KEEP_LINE_BREAKS, mySettings.KEEP_BLANK_LINES_IN_CODE);
  }
private void createSpaceWithLinefeedIfListWrapped(@NotNull PsiExpressionList list, boolean space)