docs: private static File computeCacheDirectory() {
          String path = System.getenv("COURSIER_CACHE");
  
          if (path == null)
              path = System.getProperty("coursier.cache");
  
          File baseXdgDir = new File(coursierDirectories.cacheDir);
          File xdgDir = new File(baseXdgDir, "v1");
          String xdgPath = xdgDir.getAbsolutePath();
  
          if (path == null) {
              if (baseXdgDir.isDirectory())
                path = xdgPath;
          }
  
          if (path == null) {
              File coursierDotFile = new File(System.getProperty("user.home") + "/.coursier");
              if (coursierDotFile.isDirectory())
                  path = System.getProperty("user.home") + "/.coursier/cache/v1/";
          }
  
          if (path == null) {
              path = xdgPath;
              xdgDir.mkdirs();
          }
  
          return new File(path).getAbsoluteFile();
      }