void () { String before = "refactoring/unwrap/" + getTestName(true) + "_before.py"; myFixture.configureByFile(before); UnwrapHandler h = new UnwrapHandler() { @Override protected void selectOption(List<? extends MyUnwrapAction> options, Editor editor, PsiFile file) { assertEmpty(options); } }; h.invoke(myFixture.getProject(), myFixture.getEditor(), myFixture.getFile()); }