@Nullable
    private static String getLocalizedText(ActionOrGroup actionOrGroup,
                                           ActionOrGroup.TextType text,
                                           NullableLazyValue<PropertiesFile> propertiesFile) {
      final String plain = text.getDomValue(actionOrGroup).getStringValue();
      if (StringUtil.isNotEmpty(plain)) return plain;

      final PropertiesFile bundleFile = propertiesFile.getValue();
      if (bundleFile == null) return null;

      final Property property = ObjectUtils.tryCast(bundleFile.findPropertyByKey(text.getMessageKey(actionOrGroup)), Property.class);
      return property != null ? property.getValue() : null;
    }
@Nullable
    private static String getLocalizedText(ActionOrGroup actionOrGroup,
                                           ActionOrGroup.TextType text,
                                           NullableLazyValue<PropertiesFile> propertiesFile)