void (@NotNull Project project, @NotNull ResourceBundleEditorProblemDescriptor descriptor) { final Property element = myRepresentativePointer.getElement(); if (element == null) return; final String key = element.getKey(); if (key == null) return; final PropertiesFile file = PropertiesImplUtil.getPropertiesFile(myRepresentativePointer.getContainingFile()); LOG.assertTrue(file != null); List<PropertiesFile> propertiesFiles = file.getResourceBundle().getPropertiesFiles(); if (!FileModificationService.getInstance() .preparePsiElementsForWrite(ContainerUtil.map(propertiesFiles, p -> p.getContainingFile()))) { return; } WriteAction.run(() -> propertiesFiles .stream() .flatMap(f -> f.findPropertiesByKey(key).stream()) .filter(Objects::nonNull) .map(IProperty::getPsiElement) .forEach(e -> e.delete()) ); }