package Ġfr . up hf . feature . detector Ċ Ċ import Ġfr . up hf . analyze . File Analyzer Ċ import Ġio . gitlab . art urb os ch . de te kt . api .* Ċ import Ġorg . jetbrains . kotlin . psi .* Ċ Ċ class ĠWhen Expression Detector Ġ: Ġ ĠFile Analyzer (){ Ċ ĉ override Ġfun Ġanalyze ( file : ĠK t Element ): ĠList < Finding > Ġ{ Ċĉ ĉ var Ġfindings Ġ= Ġempty List < Finding >(). to Mutable List () ĊĊĉ ĉ file . accept ( object Ġ: ĠK t Tree Visitor Void () Ġ{ ĊĊĉĉ ĉ override Ġfun Ġvisit When Expression ( expression : ĠK t When Expression ) Ġ{ Ċĉĉĉ ĉ super . visit When Expression ( expression ) Ċĉĉĉ ĉ find ings . add ( Ċĉĉĉĉ ĉ Feature ( id Ġ= Ġ" when _ expr ", Ċĉĉĉĉĉ ĉ entity Ġ= ĠEntity . from ( expression )) Ċĉĉĉ ĉ ) Ċĉĉ ĉ } Ċĉ ĉ }) ĊĊĉ ĉ return Ġfindings . toList () Ċ ĉ } Ċ Ċ } Ċ