Factorize function to extract referencedClasses out of HasClassReferences
Merge branch 'referencedclasses' of https://github.com/tbroyer/javawriter into tbroyer-referencedclasses