void () { List<String> oldPaths = mySettings.getCustomDictionariesPaths(); List<String> newPaths = new ArrayList<>(ContainerUtil.filter(myCustomDictionariesTableView.getItems(), dict -> { return !defaultDictionaries.contains(dict); })); mySettings.setCustomDictionariesPaths(newPaths); myManager.updateBundledDictionaries(ContainerUtil.filter(oldPaths, o -> !newPaths.contains(o))); }