public static void ensureElseBranch(PsiIfStatement ifStatement) {
    PsiStatement elseBranch = ifStatement.getElseBranch();
    if (elseBranch != null) {
      if (!(elseBranch instanceof PsiBlockStatement)) {
        BlockUtils.expandSingleStatementToBlockStatement(elseBranch);
      }
    } else {
      PsiStatement thenBranch = ifStatement.getThenBranch();
      PsiBlockStatement emptyBlock = BlockUtils.createBlockStatement(ifStatement.getProject());
      if (thenBranch == null) {
        ifStatement.setThenBranch(emptyBlock);
      } else if (!(thenBranch instanceof PsiBlockStatement)) {
        BlockUtils.expandSingleStatementToBlockStatement(thenBranch);
      }
      ifStatement.setElseBranch(emptyBlock);
    }
  }
public static void ensureElseBranch(PsiIfStatement ifStatement)