/* Ċ Ġ* Ġ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 . idea . code Insight . code vision Ċ Ċ import Ġcom . intellij . code Insight . hints .* Ċ import Ġcom . intellij . lang . Language Ċ import Ġcom . intellij . openapi . editor . Editor Ċ import Ġcom . intellij . openapi . util . registry . Registry Ċ import Ġcom . intellij . psi . Psi File Ċ import Ġorg . jetbrains . kotlin . idea . Kotlin Bundle Ċ import Ġorg . jetbrains . kotlin . idea . Kotlin Language Ċ Ċ @ Suppress (" Un stable Api Usage ") Ċ class ĠKotlin Code Vision Provider Ġ: ĠIn lay Hints Provider < No Settings > Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġkey : ĠSettings Key < No Settings > Ġ= ĠSettings Key (" Code Vision ") ĊĠĠĠ Ġoverride Ġval Ġname : ĠString Ġ= ĠKotlin Bundle . message (" hints . title . code vision ") ĊĠĠĠ Ġoverride Ġval Ġpreview Text : ĠString ? Ġ= Ġnull ĊĊĠĠĠ Ġvar Ġusage s Limit : ĠInt Ġ= Ġ 1 0 0 ĊĠĠĠ Ġvar Ġin her itors Limit : ĠInt Ġ= Ġ 1 0 0 ĊĊĠĠĠ Ġvar Ġshow Usage s : ĠBoolean Ġ= Ġfalse ĊĠĠĠ Ġvar Ġshow In her itors : ĠBoolean Ġ= Ġfalse ĊĊĊĠĠĠ Ġoverride Ġfun Ġis Language Supported ( language : ĠLanguage ): ĠBoolean Ġ= Ġlanguage Ġis ĠKotlin Language ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Configurable ( settings : ĠNo Settings ): ĠIm mediate Configurable Ġ= Ġcreate Immediate Configurable () ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Settings (): ĠNo Settings Ġ= ĠNo Settings () ĊĊĠĠĠ Ġoverride Ġfun Ġget Collector For ( ĊĠĠĠĠĠĠĠ Ġfile : ĠPsi File , Ġeditor : ĠEditor , Ġsettings : ĠNo Settings , Ġsink : ĠIn lay Hints Sink ĊĠĠĠ Ġ): ĠIn lay Hints Collector ? Ġ{ ĊĊĠĠĠĠĠĠĠ Ġ// ĠIt 's Ġhighly Ġdis cour aged Ġto Ġuse Ġglobal Ġsettings Ġfrom Ġthe Ġtest Ġenvironment . ĠTests Ġlaunched Ġin Ġparallel Ġmight Ġbe Ġaffected , Ġe . g . ĊĠĠĠĠĠĠĠ Ġ// ĠMulti File Highlighting Test Generated . ĠHence Ġthe Ġproperties Ġ' show Usage s ' Ġand Ġ' show In her itors '. ĊĊĠĠĠĠĠĠĠ Ġval Ġshow Usage s Resolved Ġ= ĠRegistry .` is ` (" kotlin . code - vision . us ages ", Ġfalse ) Ġ|| Ġshow Usage s ĊĠĠĠĠĠĠĠ Ġval Ġshow In her itors Resolved Ġ= ĠRegistry .` is ` (" kotlin . code - vision . in her itors ", Ġfalse ) Ġ|| Ġshow In her itors ĊĊĠĠĠĠĠĠĠ Ġif Ġ(! show Usage s Resolved Ġ&& Ġ! show In her itors Resolved ) Ġreturn Ġnull ĊĊĠĠĠĠĠĠĠ Ġreturn ĠKotlin Code Vision Hints Collector ( editor , Ġshow Usage s Resolved , Ġshow In her itors Resolved , Ġusage s Limit , Ġin her itors Limit ) ĊĠĠĠ Ġ} Ċ }