// ĠCopyright Ġ 2 0 1 9 ĠAmazon . com , ĠInc . Ġor Ġits Ġaffiliates . ĠAll ĠRights ĠReserved . Ċ // ĠSPDX - License - Identifier : ĠApache - 2 . 0 Ċ Ċ package Ġsoftware . aws . tool k its . jetbrains . services . lambda . dotnet Ċ Ċ import Ġcom . intellij . openapi . module . Module Ċ import Ġcom . intellij . psi . Psi Element Ċ import Ġsoftware . aws . tool k its . jetbrains . services . lambda . Lambda Builder Ċ import Ġsoftware . aws . tool k its . jetbrains . services . lambda . dotnet . element . R ider Lambda Handler Fake Psi Element Ċ import Ġsoftware . aws . tool k its . resources . message Ċ Ċ class ĠDot Net Lambda Builder Ġ: ĠLambda Builder () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġbase Directory ( module : ĠModule , Ġhandler Element : ĠPsi Element ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġelement Ġ= Ġhandler Element Ġas ĠR ider Lambda Handler Fake Psi Element ĊĠĠĠĠĠĠĠ Ġreturn Ġelement . get Containing Project File ()?. parent ?. path ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ?: Ġthrow ĠIllegalStateException ( message (" lambda . run . configuration . handler _ root _ not _ found ")) ĊĠĠĠ Ġ} Ċ } Ċ