void (@NotNull AnActionEvent e) { VirtualFile[] files = e.getData(CommonDataKeys.VIRTUAL_FILE_ARRAY); Project project = e.getProject(); boolean visible = project != null && !ProjectLevelVcsManager.getInstance(project).isBackgroundVcsOperationRunning() && !isEmpty(files) && files.length == 1 && files[0].isDirectory(); e.getPresentation().setVisible(visible); e.getPresentation().setEnabled(visible && !SvnStatusUtil.isUnderControl(project, files[0])); }