void (@NotNull final AnActionEvent e) { boolean enabled = myMultiline || !isUpDownKey(e) || canMoveInEditor(myNext); //enabled &= getModel().hasHistory(myNext); e.getPresentation().setEnabled(enabled); e.getPresentation().setVisible(false); }