@staticmethod
def _append_to_prev(line_stripped, curr_indent, indent, is_multiline):
    """Check if the current line should be appended to previous line."""
    if curr_indent <= indent:
        return False
    if is_multiline:
        return True
    first_word = line_stripped.split(' ')[0] or line_stripped
    is_keyword = first_word[-1] == ':'
    if not is_keyword:
        return True
    return False
