void (int index, Runnable assertion) { configureByFile(getTestName(false) + ".java"); assertion.run(); if (index >= 0) selectItem(getLookup().getItems().get(index)); myFixture.checkResultByFile(getTestName(false) + "_after.java"); }