/* Ċ Ġ* ĠCopyright Ġ 2 0 1 0 - 2 0 2 0 ĠJetBrains Ġs . r . o . Ġand ĠKotlin ĠProgramming ĠLanguage Ġcontributors . Ċ Ġ* Ġ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 . fir . resolve Ċ Ċ import Ġorg . jetbrains . kotlin . builtins . jvm . Java To Kotlin Class Map Ċ import Ġorg . jetbrains . kotlin . fir . F ir Session Ċ import Ġorg . jetbrains . kotlin . fir . No Mutable State Ċ import Ġorg . jetbrains . kotlin . fir . declarations . F ir Class Like Declaration Ċ import Ġorg . jetbrains . kotlin . fir . declarations . F ir Regular Class Ċ import Ġorg . jetbrains . kotlin . fir . resolve . providers . symbol Provider Ċ Ċ @ No Mutable State Ċ class ĠF ir Java Class Mapper ( private Ġval Ġsession : ĠF ir Session ) Ġ: ĠF ir Platform Class Mapper () Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget Corre sponding Platform Class ( declaration : ĠF ir Class Like Declaration ): ĠF ir Regular Class ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjava Class Id Ġ= ĠJava To Kotlin Class Map . map Kotlin To Java ( declaration . symbol . class Id . as Single Fq Name (). to Unsafe ()) ĊĠĠĠĠĠĠĠ Ġreturn Ġjava Class Id ?. let Ġ{ Ġsession . symbol Provider . getClass Like Symbol By Class Id ( it )?. fir Ġ} Ġas ? ĠF ir Regular Class ĊĠĠĠ Ġ} Ċ } Ċ