function isBlockOnTheSameLineWithCase(element) {
    var currentSwitchElement = element.parentElement
        .consequent[0]
        .getPreviousCodeToken()
        .nextSibling;
    while (currentSwitchElement) {
        if (currentSwitchElement === element) {
            return true;
        }
        if (currentSwitchElement.getNewlineCount() > 0) {
            break;
        }
        currentSwitchElement = currentSwitchElement.nextSibling;
    }
    return false;
}
Checks for: `case 'xxx': {`

@param {Element} element
@returns {Boolean}