Netbeans代码帮助 - 不能“转到声明”,没有可用的来源

When working with a laravel project in Netbeans, I am able to press ctrl and hover over any method or class, and if it's part of the laravel framework, the source shows up in a yellow popup. For example if I have model where I hover over "validate":

$this->validate

It shows: "vendor/laravel/framework/src/Illuminate/Foundation/Validation/ValidatesRequests.php"

If ctrl+click validate, I go directly to the class it belongs to.

But a many times it doesn't work, if it's some 3rd party library, for example in a class that has this line:

use Spatie\MediaLibrary\Models\Media;

I can't ctrl+click Media and if I hold ctrl and hover over the method "getKey":

protected function getBasePath(Media $media): string
    {
        return $media->getKey();
    }

No info on that method. So I have to go to Media.php in that library and there I see that it uses 18 things (for instance use Illuminate\Database\Eloquent\Relations\MorphTo;) so it would take me a while to manually search through them to find the getKey() function.

So how can I make Netbeans include all libraries in the "Go to" code assistance functionality?