/* Ċ Ġ* ĠCopyright Ġ 2 0 0 0 - 2 0 1 7 ĠJetBrains Ġs . r . o . ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ċ Ġ* Ġthat Ġcan Ġbe Ġfound Ġin Ġthe Ġlicense / LICENSE . txt Ġfile . Ċ Ġ*/ Ċ Ċ package Ġorg . jetbrains . kotlin . resolve . lazy Ċ Ċ import Ġorg . jetbrains . kotlin . descriptors . Declaration Descriptor Ċ import Ġorg . jetbrains . kotlin . psi . Kt Declaration Ċ import Ġorg . jetbrains . kotlin . psi . psi Util . getElement Text WithContext Ċ import Ġorg . jetbrains . kotlin . utils . Kotlin Exception With Attachments Ċ Ċ interface ĠAbs ent Descriptor Handler Ġ{ ĊĠĠĠ Ġfun Ġdiag nose Descriptor NotFound ( declaration : ĠK t Declaration ): ĠDeclaration Descriptor Ċ } Ċ Ċ class ĠBasic Absent Descriptor Handler Ġ: ĠAbs ent Descriptor Handler Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġdiag nose Descriptor NotFound ( declaration : ĠK t Declaration ) Ġ= Ġthrow ĠNo Descriptor For Declaration Exception ( declaration ) Ċ } Ċ Ċ class ĠNo Descriptor For Declaration Exception Ġ@ Jvm Over loads Ġconstructor ( declaration : ĠK t Declaration , Ġadditional Details : ĠString ? Ġ= Ġnull ) Ġ: ĊĠĠĠ ĠKotlin Exception With Attachments ( ĊĠĠĠĠĠĠĠ Ġ" Descriptor Ġwasn 't Ġfound Ġfor Ġdeclaration Ġ$ declaration " ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ+ Ġ( additional Details ?. let Ġ{ Ġ"\ n ------------------------------------------------ --- \ n $ it " Ġ} Ġ?: Ġ"") ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġwith Attachment (" declaration . kt ", Ġdeclaration . getElement Text WithContext ()) ĊĠĠĠ Ġ} Ċ }