@Nullable
    private static String getPluginResourceBundle(PsiElement element) {
      final DomElement domElement = DomUtil.getDomElement(element);
      if (domElement == null) return null;
      final DomElement rootElement = DomUtil.getFileElement(domElement).getRootElement();
      if (!(rootElement instanceof IdeaPlugin plugin)) return null;

      final String resourceBundle = plugin.getResourceBundle().getStringValue();
      if (StringUtil.isNotEmpty(resourceBundle)) {
        return resourceBundle;
      }

      final Actions actions = DomUtil.getParentOfType(domElement, Actions.class, true);
      if (DescriptorI18nUtil.canFallbackToCoreActionsBundle(actions)) {
        return DescriptorI18nUtil.CORE_ACTIONS_BUNDLE;
      }

      // for single xi:include, use including descriptor's <resource-bundle>
      final IdeaPlugin includingDescriptor = getSingleIncludingDescriptor(element);
      return includingDescriptor == null ? null : includingDescriptor.getResourceBundle().getStringValue();
    }
@Nullable
    private static String getPluginResourceBundle(PsiElement element)