public static boolean canFallbackToCoreActionsBundle(@Nullable Actions actions) {
    if (actions == null) return false;

    final Module module = actions.getModule();
    if (module == null) return false;

    if (IntelliJProjectUtil.isIntelliJPlatformProject(module.getProject()) &&
        (module.getName().startsWith("intellij.platform.") || ApplicationManager.getApplication().isUnitTestMode())) {
      return true;
    }

    final IdeaPlugin ideaPlugin = DomUtil.getParentOfType(actions, IdeaPlugin.class, true);
    if (ideaPlugin == null) return false;

    return PluginManagerCore.CORE_PLUGIN_ID.equals(ideaPlugin.getPluginId()) ||
           !ideaPlugin.hasRealPluginId();
  }
public static boolean canFallbackToCoreActionsBundle(@Nullable Actions actions)