'Determine if we can split before the next token.
Arguments:
must_split: (bool) A newline was required before this token.
Returns:
True if the line can be split before the next token.'

def CanSplit(self, must_split):

    current = self.next_token
    if current.is_pseudo_paren:
        return False
    if ((not must_split) and (format_token.Subtype.DICTIONARY_KEY_PART in current.subtypes) and (format_token.Subtype.DICTIONARY_KEY not in current.subtypes) and (not style.Get('ALLOW_MULTILINE_DICTIONARY_KEYS'))):
        return False
    return current.can_break_before
