private static boolean canShowDiffForVcs(@Nullable AbstractVcs vcs) {
    return vcs != null && vcs.getDiffProvider() != null && vcs.getRevisionSelector() != null;
  }
private static boolean canShowDiffForVcs(@Nullable AbstractVcs vcs)