private static int getStatementSize(Statement statement) {

    int res;

    if (statement.type == StatementType.BASIC_BLOCK) {
      res = ((BasicBlockStatement)statement).getBlock().getSeq().length();
    }
    else {
      res = statement.getStats().stream().mapToInt(IrreducibleCFGDeobfuscator::getStatementSize).sum();
    }

    return res;
  }
private static int getStatementSize(Statement statement)