Class with same name already defined in this file

I'd got this error when I included helper files to my _ide_helper due to PHP imports in these files.
In particular I'd got the error with Str class, which is being imported in Laravel's helpers and then also being declared later by IDE Helper's generator.
I suggest trying to remove those imports with preg_replace. Maybe there is a better solution for this or the issue is not worth it.