// ĠCopyright Ġ 2 0 0 0 - 2 0 2 0 ĠJetBrains Ġs . r . o . ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ġthat Ġcan Ġbe Ġfound Ġin Ġthe ĠLICENSE Ġfile . Ċ Ċ package Ġorg . jetbrains . plugins . groovy . geb Ċ Ċ import Ġcom . intellij . openapi . util . N ls Safe Ċ import Ġorg . jetbrains . plugins . groovy . lang . psi . api . Gr Functional Expression Ċ import Ġorg . jetbrains . plugins . groovy . lang . psi . impl . statements . expressions . Types Util Ċ import Ġorg . jetbrains . plugins . groovy . lang . psi . patterns . groovy Closure Ċ import Ġorg . jetbrains . plugins . groovy . lang . psi . patterns . psi Method Ċ import Ġorg . jetbrains . plugins . groovy . lang . resolve . deleg ates To . Deleg ates To Info Ċ import Ġorg . jetbrains . plugins . groovy . lang . resolve . deleg ates To . Gr Deleg ates To Provider Ċ Ċ class ĠG eb Browser Deleg ates To Provider Ġ: ĠGr Deleg ates To Provider Ġ{ ĊĊĠ Ġprivate Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġ@ N ls Safe ĊĠĠĠ Ġprivate Ġconst Ġval ĠDRIVE Ġ= Ġ" drive " ĊĊĠĠĠ Ġval Ġpattern Ġ= Ġgro ovy Closure (). in Method ( psi Method (" geb . Browser ", ĠDRIVE )) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġget Deleg ates To Info ( expression : ĠGr Functional Expression ): ĠDeleg ates To Info ? Ġ{ ĊĠĠĠ Ġreturn Ġif Ġ( pattern . accept s ( expression )) Ġ{ ĊĠĠĠĠĠ ĠDeleg ates To Info ( Types Util . create Type (" geb . Browser ", Ġexpression )) ĊĠĠĠ Ġ} ĊĠĠĠ Ġelse Ġ{ ĊĠĠĠĠĠ Ġnull ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ }