docs: @Nullable
    private static FileSystemProvider getSystemJimfsProvider() {
      try {
        for (FileSystemProvider provider : FileSystemProvider.installedProviders()) {
          if (provider.getScheme().equals(URI_SCHEME)) {
            return provider;
          }
        }
  
        /*
         * Jimfs.newFileSystem passes SystemJimfsFileSystemProvider.class.getClassLoader() to
         * FileSystems.newFileSystem so that it will fall back to loading from that classloader if
         * the provider isn't found in the installed providers. So do the same fallback here to ensure
         * that we can remove file systems from the static cache on SystemJimfsFileSystemProvider if
         * it gets loaded that way.
         */
        ServiceLoader<FileSystemProvider> loader =
            ServiceLoader.load(
                FileSystemProvider.class, SystemJimfsFileSystemProvider.class.getClassLoader());
        for (FileSystemProvider provider : loader) {
          if (provider.getScheme().equals(URI_SCHEME)) {
            return provider;
          }
        }
      } catch (ProviderNotFoundException | ServiceConfigurationError e) {
        /*
         * This can apparently (https://github.com/google/jimfs/issues/31) occur in an environment
         * where services are not loaded from META-INF/services, such as JBoss/Wildfly. In this
         * case, FileSystems.newFileSystem will most likely fail in the same way when called from
         * Jimfs.newFileSystem above, and there will be no way to make URI-based methods like
         * Paths.get(URI) work. Rather than making the user completly unable to use Jimfs, just
         * log this exception and continue.
         *
         * Note: Catching both ProviderNotFoundException, which would occur if no provider matching
         * the "jimfs" URI scheme is found, and ServiceConfigurationError, which can occur if the
         * ServiceLoader finds the META-INF/services entry for Jimfs (or some other
         * FileSystemProvider!) but is then unable to load that class.
         */
        LOGGER.log(
            Level.INFO,
            "An exception occurred when attempting to find the system-loaded FileSystemProvider "
                + "for Jimfs. This likely means that your environment does not support loading "
                + "services via ServiceLoader or is not configured correctly. This does not prevent "
                + "using Jimfs, but it will mean that methods that look up via URI such as "
                + "Paths.get(URI) cannot work.",
            e);
      }
  
      return null;
    }