private static void registerPropertyKey(@NotNull Project project, XmlTag xml, PropertiesFile propertiesFile) {
      final DomElement domElement = DomUtil.getDomElement(xml);
      assert domElement instanceof Separator;

      Separator separator = (Separator)domElement;

      String text = StringUtil.defaultIfEmpty(separator.getText().getStringValue(), "noText");
      @NonNls String key = "separator." + StringUtil.join(NameUtilCore.splitNameIntoWords(text),
                                                          s -> StringUtil.trim(StringUtil.decapitalize(s)), ".");

      JavaI18nUtil.DEFAULT_PROPERTY_CREATION_HANDLER.createProperty(project,
                                                                    Collections.singletonList(propertiesFile),
                                                                    key,
                                                                    StringUtil.unescapeXmlEntities(text),
                                                                    new UExpression[0]);
      separator.getText().undefine();
      separator.getKey().setValue(key);
    }
private static void registerPropertyKey(@NotNull Project project, XmlTag xml, PropertiesFile propertiesFile)