propagate file generator uses to class generator
removed unnecessary check
Merge branch 'hotfix/5286'

Close #5286
Fixes #5118
Merge pull request #5152 from robertboloc/#4669

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

Forward port #5152