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