Router.map, you’ll see it flagged as an error like “Unresolved function or method map()”.
Meteor stores the packages that it’s using in its
.meteor directory and has a list of them in
.meteor/packages as plain text. It turns out that you can make WebStorm recognize all the imported packages by opening the .meteor directory in WebStorm’s editor, and clicking the “Import packages as library” link in the top left: