private static Statement getFirstExprentlist(Statement stat) {

    if (stat.getExprents() != null) {
      return stat;
    }

    return switch (stat.type) {
      case IF, SEQUENCE, SWITCH, SYNCHRONIZED -> getFirstExprentlist(stat.getFirst());
      default -> null;
    };
  }
private static Statement getFirstExprentlist(Statement stat)