public static boolean fileInVcsByFileStatus(@NotNull Project project, @NotNull FilePath path) {
    VirtualFile file = path.getVirtualFile();
    return file == null || fileInVcsByFileStatus(project, file);
  }
public static boolean fileInVcsByFileStatus(@NotNull Project project, @NotNull FilePath path)