Iterable<PsiPackageAccessibilityStatement> () { PsiJavaModuleStub stub = getGreenStub(); if (stub != null) { return JBIterable.of(stub.getChildrenByType(JavaElementType.OPENS_STATEMENT, PsiPackageAccessibilityStatement.EMPTY_ARRAY)); } else { return psiTraverser().children(this) .filter(PsiPackageAccessibilityStatement.class) .filter(statement -> statement.getRole() == PsiPackageAccessibilityStatement.Role.OPENS); } }