void () { try { doTest(-1); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { assertEquals(StringUtil.trimEnd(StringUtil.repeat("Impossible to infer class type arguments. When proceed, raw Bar would be created\n", 3), "\n"), e.getMessage()); } }