package Ġcom . dm gb urg . al fa . completion Ċ Ċ import Ġcom . intellij . code Insight . completion . Completion ResultSet Ċ import Ġcom . intellij . code Insight . lookup . Lookup Element Builder Ċ import Ġcom . intellij . psi . tree . I ElementType Ċ Ċ fun ĠCompletion ResultSet . addElement ( type Ġ: ĠI ElementType ) Ġ{ ĊĠĠĠ Ġthis . addElement ( Lookup Element Builder . create ( type . toString ())) Ċ } Ċ Ċ @ Jvm Name (" add String ") Ċ fun ĠCompletion ResultSet . addElement ( type Ġ: ĠString ?) Ġ{ ĊĠĠĠ Ġif Ġ( type Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . addElement ( Lookup Element Builder . create ( type )) ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun ĠCompletion ResultSet . addAll Elements ( tokens : ĠList < I ElementType >) Ġ{ ĊĠĠĠ Ġthis . addAll Elements ( tokens . map Ġ{ ĠLookup Element Builder . create ( it . toString ()) Ġ}) Ċ } Ċ Ċ @ Jvm Name (" addAll Strings ") Ċ fun ĠCompletion ResultSet . addAll Elements ( tokens : ĠList < String >) Ġ{ ĊĠĠĠ Ġthis . addAll Elements ( tokens . map Ġ{ ĠLookup Element Builder . create ( it . toString ()) Ġ}) Ċ }