<BUG>private static void addClassesInDirectory(final PsiDirectory dir, final boolean includeSubdirs, final ArrayList<PsiClass> array) {ApplicationManager.getApplication().runReadAction(new Runnable() {</BUG><CONTEXT>PsiDirectory[] dirs = aPackage.getDirectories();for (PsiDirectory dir : dirs) {addClassesInDirectory(dir, includeSubpackages, array);}}<extra_id_0>@Overridepublic void run() {PsiClass[] classes = JavaDirectoryService.getInstance().getClasses(dir);</CONTEXT>
private static void addClassesInDirectory(@NotNull final PsiDirectory dir,final boolean includeSubdirs,@NotNull final List<PsiClass> array) {ApplicationManager.getApplication().runReadAction(new Runnable() {