/* Ċ Ġ* ĠCopyright Ġ 2 0 1 0 - 2 0 1 8 ĠJetBrains Ġs . r . o . Ġ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 . framework Ċ Ċ import Ġcom . intellij . openapi . components . Service Manager Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġcom . intellij . openapi . roots . impl . libraries . Library Ex Ċ import Ġcom . intellij . openapi . roots . libraries . Persistent Library Kind Ċ Ċ interface ĠLibrary Effective Kind Provider Ġ{ ĊĠĠĠ Ġfun Ġget Effective Kind ( library : ĠLibrary Ex ): ĠPersistent Library Kind < *> ? ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun ĠgetInstance ( project : ĠProject ) Ġ= ĠService Manager . getService ( project , ĠLibrary Effective Kind Provider :: class . java ) !! ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun ĠLibrary Ex . effective Kind ( project : ĠProject ) Ġ= ĠLibrary Effective Kind Provider . getInstance ( project ). get Effective Kind ( this )