Editor (@NotNull AnActionEvent e) { final Editor editor = e.getData(CommonDataKeys.EDITOR); if (editor == null) { return null; } return editor.getUserData(myNext ? NEXT_EDITOR_KEY : PREV_EDITOR_KEY); }