void (@NotNull String message) { myFixture.configureByFile(getTestName(false) + ".java"); ActionContext ac = ActionContext.from(getEditor(), getFile()); SealClassAction action = new SealClassAction(); assertNotNull(action.getPresentation(ac)); ModCommand command = action.perform(ac); assertEquals(ModCommand.error(message), command); }