Being read-only doesn't mean model can't serve as generator's input. OTOH, it seems reasonable not to look into generation status of read-only models as they are unlikely to change and thus can't affect 'generation required' status.
Reuse RefactoringUtil from RenameLanguageDialog