If you have declared a local variable but do not know its type, you can click the Create Local Variable button (

) (or press Ctrl+1) to insert the correct type declaration. If the local variable is also missing, a unique local variable is created along with its type declaration. For example, if you type
and then click the Create Local Variable button, the variable’s type declaration is added:
If you only added model.component("comp1").geom(), a unique local variable name is also added: