private static @Nullable FilePath doResolve(@Nullable Project project, @NotNull String rawPath, boolean isDirectory) {
    if (project == null || project.isDisposed()) {
      return null;
    }
    VirtualFile baseDir = project.getBaseDir();

    String path = FileUtil.toSystemIndependentName(rawPath);
    if (baseDir == null) {
      return VcsUtil.getFilePath(path, isDirectory);
    }

    VirtualFile resolvedRelative = baseDir.findFileByRelativePath(path);
    if (resolvedRelative != null) return VcsUtil.getFilePath(resolvedRelative);

    return VcsUtil.getFilePath(path, isDirectory);
  }
private static @Nullable FilePath doResolve(@Nullable Project project, @NotNull String rawPath, boolean isDirectory)