void (String value, ModifiableRootModel model) { try { boolean aDefault = LanguageLevelProjectExtension.getInstance(ProjectManager.getInstance().getDefaultProject()).isDefault(); if (aDefault) { LanguageLevelProjectExtension.getInstance(model.getProject()).setDefault(true); } else { LanguageLevel level = LanguageLevel.valueOf(value); LanguageLevelProjectExtension.getInstance(model.getProject()).setLanguageLevel(level); } } catch (IllegalArgumentException ignore) { } }