void (@NotNull PsiPackage aPackage, boolean includeSubpackages, @NotNull List<? super PsiClass> array) { PsiDirectory[] dirs = ReadAction.compute(() -> aPackage.getDirectories()); for (PsiDirectory dir : dirs) { addClassesInDirectory(dir, includeSubpackages, array); } }