public PackageScope(@NotNull PsiPackage aPackage, boolean includeSubpackages, final boolean includeLibraries) {
myPackage = aPackage;
myIncludeSubpackages = includeSubpackages;
Project project = myPackage.getProject();
FileIndex fileIndex = ProjectRootManager.getInstance(project).getFileIndex();
myDirs = fileIndex.getDirsByPackageName(myPackage.getQualifiedName(), true).findAll();
myIncludeLibraries = includeLibraries;
}