// Ġ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 . code Insight . navigation Ċ Ċ import Ġcom . intellij . navigation . Colo red Item Presentation Ċ import Ġcom . intellij . navigation . Item Presentation Ċ import Ġcom . intellij . openapi . editor . colors . Editor Colors Manager Ċ import Ġcom . intellij . openapi . editor . markup . Text Attributes Ċ import Ġjava . util . regex . Pattern Ċ Ċ private Ġval ĠCON TAIN ER _ PATTERN : ĠPattern Ġ= ĠPattern . compile ("( \\ ( in Ġ| \\ ()? ([^ )] *)( \\ )) ?") Ċ Ċ internal Ġfun ĠItem Presentation . get Colo red Attributes (): ĠText Attributes ? Ġ{ ĊĠ Ġval Ġcolored Presentation Ġ= Ġthis Ġas ? ĠCo lo red Item Presentation ĊĠ Ġval Ġtext Attributes Key Ġ= Ġcolored Presentation ?. text Attributes Key Ġ?: Ġreturn Ġnull ĊĠ Ġreturn ĠEditor Colors Manager . getInstance (). scheme For Current UIT heme . getAttributes ( text Attributes Key ) Ċ } Ċ Ċ internal Ġfun ĠItem Presentation . getLocation Text (): ĠString ? Ġ{ ĊĠ Ġval Ġlocation String Ġ= Ġlocation String Ġ?: Ġreturn Ġnull ĊĠ Ġval Ġmatcher Ġ= ĠCON TAIN ER _ PATTERN . matcher ( location String ) ĊĠ Ġreturn Ġif Ġ( matcher . matches ()) Ġmatcher . group ( 2 ) Ġelse Ġlocation String Ċ } Ċ