boolean () { final AnAction action = createAction(myArtifactEditor); final AnActionEvent event = createActionEvent(action); action.update(event); return event.getPresentation().isEnabled() && event.getPresentation().isVisible(); }