default List<? extends PyAstStatement> getStatements() {
    List<PyAstStatement> stmts = new ArrayList<>();
    for (PsiElement child : getChildren()) {
      if (child instanceof PyAstStatement statement) {
        stmts.add(statement);
      }
    }
    return stmts;
  }
default List<? extends PyAstStatement> getStatements()