void (ActionEvent e) { PropertiesFile propertiesFile = getPropertiesFile(); if (propertiesFile != null) { List<I18nizedPropertyData<D>> pairs = myKeyValuePairs; ReadAction.nonBlocking(() -> { List<I18nizedPropertyData<D>> result = new ArrayList<>(); for (I18nizedPropertyData<D> data : pairs) { result.add(data.changeKey(I18nizeQuickFixDialog.suggestUniquePropertyKey(data.value(), data.key(), propertiesFile))); } return result; }).finishOnUiThread(ModalityState.stateForComponent(myPropertiesFile), datum -> { for (int i = 0; i < datum.size(); i++) { myKeyValuePairs.set(i, datum.get(i)); } }).submit(AppExecutorUtil.getAppExecutorService()); } }