Iterable<PsiPackageAccessibilityStatement> (@NotNull PsiJavaModule javaModule, @NotNull Role role) { return switch (role) { case OPENS -> javaModule.getOpens(); case EXPORTS -> javaModule.getExports(); }; }