propagate file generator uses to class generator
removed unnecessary check
Merge pull request #5152 from robertboloc/#4669

Issue #4669 - Class generator should return uses from file generator
Merge branch 'hotfix/5152'

Close #5152