docs: public static void checkJavaInternalAccess(ILogger logger) {
          if (logger == null || !JavaVersion.isAtLeast(JavaVersion.JAVA_9)) {
              // older Java versions are fine with the reflection
              return;
          }
  
          Map<String, PackageAccessRequirement[]> requirements = new TreeMap<String, PackageAccessRequirement[]>();
          requirements.put("java.base",
                  new PackageAccessRequirement[] {
                          createRequirement(false, "jdk.internal.ref"),
                          createRequirement(true, "java.lang"),
                          createRequirement(true, "java.nio"),
                          createRequirement(true, "sun.nio.ch")
                          });
          requirements.put("jdk.management", getJdkManagementRequirements());
          requirements.put("java.management", new PackageAccessRequirement[] { createRequirement(true, "sun.management") });
          checkPackageRequirements(logger, requirements);
      }