void (@NotNull AnActionEvent e) { UpdateSession session = e.getUpdateSession(); if (session == UpdateSession.EMPTY) myDelegate.update(e); else e.getPresentation().copyFrom(session.presentation(myDelegate), null, true); }