String (String value, NlsInfo.Localized info) { String prefix = info.getPrefix(); String suffix = info.getSuffix(); if (prefix.isEmpty() && suffix.isEmpty()) return null; if (!prefix.isEmpty()) { prefix += "."; } if (!suffix.isEmpty()) { suffix = "." + suffix; } String payload = I18nizeQuickFixDialog.generateDefaultPropertyKey(value); payload = Stream.of(payload.split("\\.")) .filter(s -> !s.matches("\\d+") && !AUXILIARY_WORDS.contains(s)).collect(Collectors.joining(".")); return prefix + payload + suffix; }