void (@NotNull AnActionEvent e) { Project project = e.getProject(); Presentation presentation = e.getPresentation(); if (project == null) { presentation.setEnabledAndVisible(false); return; } presentation.setVisible(true); ChangeList[] changeLists = e.getData(VcsDataKeys.CHANGE_LISTS); presentation.setEnabled(!isEmpty(changeLists) && SvnVcs.getInstance(project).getName().equals(((CommittedChangeList)changeLists[0]).getVcs().getName()) && ((SvnChangeList)changeLists[0]).getRoot() != null); }