static @NotNull Mediator computeMediator() {
    boolean forceNio = Boolean.getBoolean(FORCE_USE_NIO2_KEY) ||
                       "com.intellij.platform.core.nio.fs".equals(FileSystems.getDefault().provider().getClass().getPackage().getName());
    if (!forceNio) {
      try {
        if ((SystemInfo.isLinux || SystemInfo.isMac) && CpuArch.isIntel64() && JnaLoader.isLoaded()) {
          return ensureSane(new JnaUnixMediatorImpl());
        }
      }
      catch (Throwable t) {
        LOG.warn("Failed to load filesystem access layer: " + SystemInfo.OS_NAME + ", " + SystemInfo.JAVA_VERSION, t);
      }
    }

    return new Nio2MediatorImpl();
  }
static @NotNull Mediator computeMediator()