void (AnActionEvent event, ThreeState hadAnythingRunnable) { event.getPresentation().copyFrom(getTemplatePresentation()); event.getPresentation().setEnabledAndVisible(hadAnythingRunnable == ThreeState.YES); }