// ĠCopyright Ġ 2 0 0 0 - 2 0 1 9 Ġ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 . ide . ui Ċ Ċ import Ġcom . intellij . navigation . Target Presentation Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġcom . intellij . ui . list . Left Right Search Aware Renderer Ċ import Ġcom . intellij . ui . speed Search . Search Aware Renderer Ċ import Ġorg . jetbrains . annotations . Api Status . Experimental Ċ Ċ @ Experimental Ċ fun Ġ< T > Ġcreate Target Presentation Renderer ( project : ĠProject , Ġpresentation : Ġ( T ) Ġ-> ĠTarget Presentation ?): ĠSearch Aware Renderer < T > Ġ{ ĊĠ Ġval Ġmain Renderer Ġ= Ġcreate Main Renderer ( project , Ġpresentation ) ĊĠ Ġif Ġ( UI Settings . instance . show Icon In Quick Navigation ) Ġ{ ĊĠĠĠ Ġval Ġright Renderer Ġ= Ġcreate Right Renderer ( presentation ) ĊĠĠĠ Ġreturn ĠLeft Right Search Aware Renderer ( main Renderer , Ġright Renderer ) ĊĠ Ġ} ĊĠ Ġelse Ġ{ ĊĠĠĠ Ġreturn Ġmain Renderer ĊĠ Ġ} Ċ } Ċ Ċ private Ġfun Ġ< T > Ġcreate Main Renderer ( project : ĠProject , Ġpresentation : Ġ( T ) Ġ-> ĠTarget Presentation ?): ĠSearch Aware Renderer < T > Ġ{ ĊĠ Ġreturn Ġobject Ġ: ĠTarget Presentation Main Renderer < T >( project ) Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget Presentation ( value : ĠT ): ĠTarget Presentation ? Ġ= Ġpresentation ( value ) ĊĠ Ġ} Ċ } Ċ Ċ private Ġfun Ġ< T > Ġcreate Right Renderer ( presentation : Ġ( T ) Ġ-> ĠTarget Presentation ?): ĠSearch Aware Renderer < T > Ġ{ ĊĠ Ġreturn Ġobject Ġ: ĠTarget Presentation Right Renderer < T >() Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget Presentation ( value : ĠT ): ĠTarget Presentation ? Ġ= Ġpresentation ( value ) ĊĠ Ġ} Ċ } Ċ