package Ġdev . ek ved ar as . laravel query . reference Ċ Ċ import Ġcom . intellij . openapi . application . Application Manager Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġcom . intellij . psi . Psi Element Ċ import Ġcom . intellij . psi . Psi Reference Ċ import Ġcom . intellij . psi . Psi Reference Provider Ċ import Ġcom . intellij . util . Processing Context Ċ import Ġcom . jetbrains . php . lang . psi . elements . Method Reference Ċ import Ġdev . ek ved ar as . laravel query . models . Db Reference Expression Ċ import Ġdev . ek ved ar as . laravel query . utils . Laravel Utils . Companion . can Have Columns In Array Values Ċ import Ġdev . ek ved ar as . laravel query . utils . Laravel Utils . Companion . is Builder Method For Columns Ċ import Ġdev . ek ved ar as . laravel query . utils . Laravel Utils . Companion . is Column In Ċ import Ġdev . ek ved ar as . laravel query . utils . Laravel Utils . Companion . is Inside Regular Function Ċ import Ġdev . ek ved ar as . laravel query . utils . Laravel Utils . Companion . is Inter esting Ċ import Ġdev . ek ved ar as . laravel query . utils . Laravel Utils . Companion . should Complete Only Columns Ċ import Ġdev . ek ved ar as . laravel query . utils . Method Utils Ċ import Ġdev . ek ved ar as . laravel query . utils . Psi Utils . Companion . contains Variable Ċ import Ġdev . ek ved ar as . laravel query . utils . Psi Utils . Companion . isArray Value Ċ Ċ class ĠColumn Reference Provider Ġ: ĠPsi Reference Provider () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget References By Element ( element : ĠPsi Element , Ġcontext : ĠProcessing Context ): ĠArray < Psi Reference > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġmethod Ġ= ĠMethod Utils . resolve Method Reference ( element ) Ġ?: Ġreturn ĠPsi Reference . EMPTY _ ARRAY ĊĠĠĠĠĠĠĠ Ġval Ġproject Ġ= Ġmethod . project ĊĊĠĠĠĠĠĠĠ Ġif Ġ( should Not Inspect ( project , Ġmethod , Ġelement )) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠPsi Reference . EMPTY _ ARRAY ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġvar Ġreferences Ġ= ĠarrayOf < Psi Reference >() ĊĊĠĠĠĠĠĠĠ Ġif Ġ(! method . should Complete Only Columns ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreferences Ġ+= ĠSchema Psi Reference ( element , ĠDb Reference Expression . Companion . Type . Column ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreferences Ġ+= ĠTable Or View Psi Reference ( element , ĠDb Reference Expression . Companion . Type . Column ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġreferences Ġ+= ĠColumn Psi Reference ( element ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġreferences ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġshould Not Inspect ( project : ĠProject , Ġmethod : ĠMethod Reference , Ġelement : ĠPsi Element ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġallow Array Ġ= Ġ!( method . name ?. equals (" where In ") Ġ?: Ġfalse ) Ġ&& ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ( method . name ?. startsWith (" where ") Ġ?: Ġfalse ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġ! Application Manager . getApplication (). is Read Access Allowed Ġ|| ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelement . contains Variable () Ġ|| ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ! method . is Builder Method For Columns () Ġ|| ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ! element . is Column In ( method , Ġallow Array ) Ġ|| ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelement . is Inside Regular Function () Ġ|| ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ(( element . parent ?. isArray Value () Ġ?: Ġfalse ) Ġ&& Ġ! method . can Have Columns In Array Values ()) Ġ|| ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ! method . is Inter esting ( project ) ĊĠĠĠ Ġ} Ċ } Ċ