boolean (final ViewSettings settings, final Object parentValue, final PsiDirectory value) { PsiPackage aPackage; return value != null && !(parentValue instanceof Project) && settings.isFlattenPackages() && (aPackage = JavaDirectoryService.getInstance().getPackage(value)) != null && !aPackage.getQualifiedName().isEmpty(); }