void (@NotNull Disposable parentDisposable, @NotNull LanguageLevel level) { List<String> acceptedNames = getSettings().acceptedNames; String name = level.name(); if (!acceptedNames.contains(name)) { acceptedNames.add(name); Disposer.register(parentDisposable, () -> getSettings().acceptedNames.remove(name)); } }