// TODO: create additional MPSConfigurationBean.get/setUsedLanguageReferences() methods and use it
 // here
 private static List<SModuleReference> getUsedLanguages(MPSConfigurationBean data) {
   List<SModuleReference> usedLanguages = new ArrayList<SModuleReference>();
   for (String moduleReference : data.getUsedLanguages()) {
     usedLanguages.add(
         jetbrains.mps.project.structure.modules.ModuleReference.fromString(moduleReference));
   }
   return usedLanguages;
 }
 public void apply(MPSConfigurationBean data) {
   data.setUsedLanguages(getUsedLanguagesStringArray());
 }