void (PsiElement[] elements, PsiDirectory defaultTargetDirectory) { final IProperty representative = PropertiesImplUtil.getProperty(elements[0]); if (representative == null) return; final String key = representative.getKey(); if (key == null) { return; } final ResourceBundle resourceBundle = representative.getPropertiesFile().getResourceBundle(); final List<IProperty> properties = ContainerUtil.mapNotNull(resourceBundle.getPropertiesFiles(), propertiesFile -> propertiesFile.findPropertyByKey(key)); final PropertiesCopyDialog dlg = new PropertiesCopyDialog(properties, resourceBundle); if (!properties.isEmpty() && dlg.showAndGet()) { final String propertyNewName = dlg.getCurrentPropertyName(); final ResourceBundle destinationResourceBundle = dlg.getCurrentResourceBundle(); copyPropertyToAnotherBundle(properties, propertyNewName, destinationResourceBundle); } }