// Ġ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 Ġcom . intellij . model . search . impl Ċ Ċ import Ġcom . intellij . model . Pointer Ċ import Ġcom . intellij . model . Symbol Ċ import Ġcom . intellij . model . psi . Psi Symbol Reference Ċ import Ġcom . intellij . model . search . Code Reference Searcher Ċ import Ġcom . intellij . model . search . Leaf Occurrence Mapper Ċ import Ġcom . intellij . psi . Psi Element Ċ Ċ class ĠCode Reference Mapper ( ĊĠ Ġprivate Ġval Ġpointer : ĠPointer < out ĠSymbol >, ĊĠ Ġprivate Ġval Ġsearch er : ĠCode Reference Searcher Ċ ) Ġ: ĠLeaf Occurrence Mapper < Psi Symbol Reference > Ġ{ ĊĊĠ Ġoverride Ġfun Ġmap Occurrence ( scope : ĠPsi Element , Ġstart : ĠPsi Element , Ġoffset In Start : ĠInt ): ĠCollection < Psi Symbol Reference > Ġ{ ĊĠĠĠ Ġval Ġtarget Ġ= Ġpointer . dere ference () Ġ?: Ġreturn Ġempty List () ĊĠĠĠ Ġreturn Ġsearch er . get References ( target , Ġscope , Ġstart , Ġoffset In Start ) ĊĠ Ġ} Ċ } Ċ