boolean (@NotNull VirtualFile file) { if (file.isDirectory() && !myRoot.equals(file)) { PsiDirectory directory = getManager().findDirectory(file); if (directory != null) { PsiPackage pkg = service.getPackage(directory); if (pkg != null) { String packageName = pkg.getQualifiedName(); if (!packageName.isEmpty() && !PsiUtil.isPackageEmpty(new PsiDirectory[]{directory}, packageName)) { exports.add(new LightPackageAccessibilityStatement(getManager(), packageName)); } } } } return true; }