private static @Nullable PropertiesFile findCoreActionsBundlePropertiesFile(@Nullable Actions actions) {
    if (!canFallbackToCoreActionsBundle(actions)) return null;

    final Module module = actions.getModule();
    assert module != null;
    final Project project = module.getProject();

    final PropertiesReferenceManager propertiesReferenceManager = PropertiesReferenceManager.getInstance(project);
    List<PropertiesFile> actionsBundleFiles;

    Module resourcesModule = ApplicationManager.getApplication().isUnitTestMode() ? module :
                             ModuleManager.getInstance(project).findModuleByName("intellij.platform.resources.en");
    // not in IDEA project -> search in library
    if (resourcesModule == null) {
      actionsBundleFiles = propertiesReferenceManager.findPropertiesFiles(actions.getResolveScope(), CORE_ACTIONS_BUNDLE,
                                                                          BundleNameEvaluator.DEFAULT);
    }
    else {
      actionsBundleFiles = propertiesReferenceManager.findPropertiesFiles(resourcesModule, CORE_ACTIONS_BUNDLE);
    }
    return ContainerUtil.getOnlyItem(actionsBundleFiles);
  }
private static @Nullable PropertiesFile findCoreActionsBundlePropertiesFile(@Nullable Actions actions)