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