Avoid errors when formatting after applying template

Add the staticImport resolver
Add the newType resolver