void (@NotNull Module module, @NotNull LanguageLevel level, @NotNull Disposable parentDisposable) { LanguageLevel prev = LanguageLevelUtil.getCustomLanguageLevel(module); setModuleLanguageLevel(module, level); Disposer.register(parentDisposable, () -> setModuleLanguageLevel(module, prev)); }