void (@NotNull AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); VirtualFile file = e.getData(CommonDataKeys.VIRTUAL_FILE); e.getPresentation().setEnabled(project != null && file != null && VcsUtil.isFileForVcs(file, project, SvnVcs.getInstance(project)) && AbstractVcs.fileInVcsByFileStatus(project, file)); }