static async getAst(code, astType, { filePath } = {}) {
    // eslint-disable-next-line default-case
    try {
      if (astType === 'babel') {
        return await this._getBabelAst(code);
      }
      if (astType === 'swc') {
        return await this._getSwcAst(code);
      }
      if (astType === 'oxc') {
        return await this._getOxcAst(code, { filePath });
      }
      throw new Error(`astType "${astType}" not supported.`);
    } catch (e) {
      LogService.error(`Error when parsing "${filePath}":/n${e}`);
    }
  }
Returns the Babel AST
@param { string } code
@param {AnalyzerAst} astType
@param { {filePath?: PathFromSystemRoot} } options
@returns {Promise<File|undefined|SwcAstModule|OxcParseResult>}