Tern & Completion Guess support - angelozerr/tern.java GitHub Wiki
tern-guess-types gives the capability to guess parameter types when completion is applied.
When completion is applied, it's possible to open a second completion with variable which matches the type of the parameter function :

To activate this mode, you must check the Guess Completion tern plugin. After installing and converting your project as Tern Project, go at Tern project property, click on Tern / Modules item and select the Completion Guess tern plugin :

After that, when you open a completion :

and you apply a completion item (here addEventListener), guess type opens a second popup with variables. In this case string variables are shown,
because the first parameter of addEventListener is string type :
