void (@NotNull AnActionEvent e) { AnActionEvent wrapped = wrapEvent(e); myOrigin.update(wrapped); Icon icon = wrapped.getPresentation().getIcon(); if (icon != null) { e.getPresentation().setIcon(icon); } }