void (@NotNull AnActionEvent e) { Pair<PsiElement, PsiElement> info = getDocInfo(); if (info == null) { return; } doActionPerformed(e.getDataContext(), info.first, info.second); myDocAnchor = null; myOriginalElement = null; }