void moveBranchLabel() {
      PsiElement firstElementToMove = myBranchPrefixToMove.get(0);
      PsiElement lastElementToMove = myBranchPrefixToMove.get(myBranchPrefixToMove.size() - 1);

      PsiElement moveTarget = myLabelToMergeWith;
      if (myLabelToMergeWith.isDefaultCase()) {
        PsiElement prevElement = PsiTreeUtil.skipWhitespacesAndCommentsBackward(myLabelToMergeWith);
        if (prevElement != null) moveTarget = prevElement;
      }
      if (PsiUtil.isAvailable(JavaFeature.SWITCH_EXPRESSION, moveTarget) && moveTarget instanceof PsiSwitchLabelStatement labelStatement &&
          myBranchToDelete.canCopyCaseValues(myBranchToMergeWith) && !SwitchUtils.isCaseNull(labelStatement) &&
          !SwitchUtils.isDefaultLabel(labelStatement)) {
        for (PsiElement element : myBranchPrefixToMove) {
          if (element instanceof PsiSwitchLabelStatement statement) {
            if (SwitchUtils.isCaseNull(statement) && myLabelToMergeWith.isDefaultCase()) {
              copyCaseValues(statement, myLabelToMergeWith, true);
            }
            else {
              copyCaseValues(statement, labelStatement, false);
            }
          }
        }
      }
      else {
        if (myBranchToMergeWith.isDefault()) {
          for (PsiElement current = lastElementToMove; current != firstElementToMove; current = current.getPrevSibling()) {
            if (current instanceof PsiWhiteSpace) continue;
            if (current instanceof PsiSwitchLabelStatement labelStatement && SwitchUtils.isCaseNull(labelStatement)) {
              copyCaseValues(labelStatement, myLabelToMergeWith, true);
            }
            else {
              moveTarget.getParent().addAfter(current, moveTarget);
            }
          }
        }
        else {
          moveTarget.getParent().addRangeAfter(firstElementToMove, lastElementToMove, moveTarget);
        }
      }
      firstElementToMove.getParent().deleteChildRange(firstElementToMove, lastElementToMove);
    }
void moveBranchLabel()