private static @Nullable File findRealRepositoryDir(@NotNull @NonNls Path rootPath, @NotNull @NonNls String path) {
    if (!FileUtil.isAbsolute(path)) {
      String canonicalPath = FileUtil.toCanonicalPath(FileUtil.join(rootPath.toString(), path), true);
      path = FileUtil.toSystemIndependentName(canonicalPath);
    }
    File file = new File(path);
    return file.isDirectory() ? file : null;
  }
private static @Nullable File findRealRepositoryDir(@NotNull @NonNls Path rootPath, @NotNull @NonNls String path)