@NotNull
  public static GlobalSearchScope searchScopeFor(@NotNull Project project, boolean searchInLibraries) {
    return searchInLibraries ? ProjectScope.getAllScope(project) : ProjectScope.getProjectScope(project);
  }
@NotNull
  public static GlobalSearchScope searchScopeFor(@NotNull Project project, boolean searchInLibraries)