LanguageDescriptor descriptor = ((LanguageDescriptor) handle.getDescriptor());
assert descriptor != null;
assert descriptor.getId() != null;
Language language = new Language();
language.setLanguageDescriptor(descriptor, false);
<BUG>language.myDescriptorFile = handle.getFile();
LibrariesLoader.createLanguageLibs(moduleOwner, language, descriptor, MPSModuleRepository.getInstance());
return MPSModuleRepository.getInstance().registerModule(language, moduleOwner);
}</BUG>
protected Language() {

LanguageDescriptor descriptor = ((LanguageDescriptor) handle.getDescriptor());
assert descriptor != null;
assert descriptor.getId() != null;
Language language = new Language();
language.setLanguageDescriptor(descriptor, false);
language.myDescriptorFile = handle.getFile();
Language registered = MPSModuleRepository.getInstance().registerModule(language, moduleOwner);
if (registered == language) {
LibrariesLoader.createLanguageLibs(moduleOwner, language, descriptor, MPSModuleRepository.getInstance());
