private synchronized void scheduleCheck(String path, long delay) {
      if (myService != null && !myService.isShutdown()) {
        myService.schedule(() -> {
          final long startTime = System.currentTimeMillis();
          boolean pathIsValid;
          try {
            pathIsValid = !RecentProjectsManagerBase.Companion.isFileSystemPath$intellij_platform_ide_impl(path) || isPathAvailable(path);
          }
          catch (Exception e) {
            pathIsValid = false;
          }
          if (myInvalidPaths.contains(path) == pathIsValid) {
            if (pathIsValid) {
              myInvalidPaths.remove(path);
            }
            else {
              myInvalidPaths.add(path);
            }
            ApplicationManager.getApplication().invokeLater(myCallback);
          }
          scheduleCheck(path, Math.max(MIN_AUTO_UPDATE_MILLIS, 10 * (System.currentTimeMillis() - startTime)));
        }, delay, TimeUnit.MILLISECONDS);
      }
    }
private synchronized void scheduleCheck(String path, long delay)