private static boolean canCompleteNormally(PsiStatement branch, ControlFlow flow) {
    if (branch == null) return true;
    int startOffset = flow.getStartOffset(branch);
    int endOffset = flow.getEndOffset(branch);
    return startOffset != -1 && endOffset != -1 && ControlFlowUtil.canCompleteNormally(flow, startOffset, endOffset);
  }
private static boolean canCompleteNormally(PsiStatement branch, ControlFlow flow)