function lastGroupWillBreakAndOtherCallsHaveComplexArguments() {
    const lastGroupNode = getLast$3(getLast$3(groups)).node;
    const lastGroupDoc = getLast$3(printedGroups);
    return isCallOrOptionalCallExpression$1(lastGroupNode) && willBreak$2(lastGroupDoc) && callExpressions.some((expr, index) => index !== callExpressions.length - 1 && callHasComplexArguments(expr, index));
  } // We don't want to print in one line if at least one of these conditions occurs:
If the last call's argument is a function, it's okay to inline if it fits and there is no other function arguments.

This chain should be split:

    const mapped = scopes.filter(scope => scope.value !== '').map((scope, i) => {
      // multi line content
    });

This chain can be inlined:

    const mapped = scopes.filter(myFilter).map((scope, i) => {
      // multi line content
    });