I'm experiencing incomplete support for RequireJS when using PhpStorm. Dependencies are acknowledged, but the IDE is unable to resolve the dependency interface, resulting in a ton of *unresolved function or method* warnings for example. Am I doing something wrong, or missing something?

For example:

```js
//Foo.js
define(() => {
    function Foo() {}
    Foo.prototype.bar = function () {
        return true;
    }
    return Foo;
});

```

```js
//Baz.js
define([
    'Foo' // PhpStorm does acknowledge the Foo.js dependency, referring to the appropriate file
], (Foo) => {
    let foo = new Foo();
    console.log(foo.bar()); // But is not aware that Foo.prototype.bar exists, and generates a warning
});

```

I'm hesitant to refactor this code into something like `export default Foo;` (which has better support) just to enable better IDE support, as I feel I might be doing something wrong, or missing some sort of plugin.

Is there anything I can do to improve this?