fix ClassCastException
fix NPE caused by migrating generators
do not require language migrations to be applied to module which does not use the language
use language of script we reference, not our script