public static @NotNull GlobalSearchScope directoryScope(@NotNull Project project,
                                                          @NotNull VirtualFile directory,
                                                          boolean withSubdirectories) {
    return GlobalSearchScopesCore.directoryScope(project, directory, withSubdirectories);
  }
public static @NotNull GlobalSearchScope directoryScope(@NotNull Project project,
                                                          @NotNull VirtualFile directory,
                                                          boolean withSubdirectories)