List<PsiFileSystemItem> (@NotNull Project project, @NotNull String packageName, @NotNull GlobalSearchScope scope) { Query<VirtualFile> query = PlatformPackageUtil.getDirectoriesByPackageName(packageName, scope, project); Collection<VirtualFile> files = ContainerUtil.reverse(ContainerUtil.sorted(query.findAll(), scope::compare)); return ContainerUtil.mapNotNull(files, PsiManager.getInstance(project)::findDirectory); }