boolean (@NotNull FileHistoryModel model, @Nullable VcsCommitMetadata detail, @NotNull AnActionEvent e) { if (detail != null) { VirtualFile file = FileHistoryUtil.createVcsVirtualFile(model.createRevision(detail)); if (file == null) return false; } return true; }