void (@NotNull AnActionEvent e) { final DataContext dc = e.getDataContext(); final ChangeList[] lists = VcsDataKeys.CHANGE_LISTS.getData(dc); final boolean enabled = lists != null && lists.length == 1 && lists[0] instanceof SvnChangeList; if (! enabled) return; final SvnChangeList svnList = (SvnChangeList) lists[0]; Project project = CommonDataKeys.PROJECT.getData(dc); project = project == null ? ProjectManager.getInstance().getDefaultProject() : project; final Consumer<String> listener = VcsDataKeys.REMOTE_HISTORY_CHANGED_LISTENER.getData(dc); askAndEditRevision(svnList.getNumber(), svnList.getComment(), svnList.getLocation(), project, listener, false); }