void (@NotNull AnActionEvent e) { Project project = e.getProject(); SvnVcs vcs = project != null ? SvnVcs.getInstance(project) : null; VirtualFile[] files = getSelectedFiles(e); boolean visible = project != null; e.getPresentation().setEnabled(visible && vcs != null && !isEmpty(files) && isEnabled(vcs, files)); e.getPresentation().setVisible(visible); }