boolean (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); VirtualFile file = e.getRequiredData(CommonDataKeys.VIRTUAL_FILE); return VcsAnnotateUtil.getBackgroundableLock(project, file).isLocked(); }