void (@NotNull AnActionEvent e) { boolean enabled = ContainerUtil.exists(myModelChanges, c -> { if (c.isResolved()) return false; if (c.getStatus() == AppliedTextPatch.HunkStatus.NOT_APPLIED) return false; return true; }); e.getPresentation().setEnabled(enabled); }