code: function getRemoveUnneededNulls() {
    return {
      visitor: {
          // Remove `null;` statements (e.g. at the end of constructors)
          // and orphan empty object literals (on top of constructors with no base)
          ExpressionStatement(path) {
              const expr = path.node.expression;
              if (expr.type === "NullLiteral"
                  || (expr.type === "ObjectExpression" && expr.properties.length === 0)) {
                  path.remove();
              }
          },
      },
    };
  }
docs: Removes unnecessary null statements (e.g. at the end of constructors)