void () { try { doTest(introducer -> type("p")); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { assertEquals("There is already a parameter <b><code>p</code></b>. It will conflict with the introduced parameter", e.getMessage()); return; } fail("Conflict expected"); }