private static boolean isEnabled(@NotNull AnActionEvent event) {
    Pair<FilePath, VcsRevisionNumber> fileAndRevision = getFileAndRevision(event);
    return fileAndRevision != null && !fileAndRevision.second.asString().isEmpty();
  }
private static boolean isEnabled(@NotNull AnActionEvent event)