void (final @NotNull AnActionEvent e) { ViewContext context = getViewFacade(e); Content[] content = getContent(e); if (context != null && content != null && !containsInvalidContent(content)) { update(e, context, content); } else { setEnabled(e, false); } }