void () { LocalHistoryAction a = new LocalHistoryAction() { @Override protected void actionPerformed(@NotNull Project p, @NotNull IdeaGateway gw, @NotNull AnActionEvent e) { } }; assertStatus(a, myRoot, myProject, true); assertStatus(a, myRoot, null, false); }