@Nullable
  public static ResourceBundleManager getManager(@NotNull Collection<PsiFile> contexts, @NotNull Project project) throws ResourceBundleNotFoundException {
    ResourceBundleManager result = null;
    for (ResourceBundleManager manager : RESOURCE_BUNDLE_MANAGER.getExtensions(project)) {
      if (isActiveForAny(manager, contexts)) {
        if (result != null) {
          //multiple managers are active
          return null;
        }
        result = manager;
      }
    }
    if (result != null) {
      return result;
    }
    final DefaultResourceBundleManager manager = new DefaultResourceBundleManager(project);
    return isActiveForAny(manager, contexts) ? manager : null;
  }
@Nullable
  public static ResourceBundleManager getManager(@NotNull Collection<PsiFile> contexts, @NotNull Project project)