void (final String... expected) { InlineToAnonymousClassProcessor processor = prepareProcessor(); UsageInfo[] usages = processor.findUsages(); MultiMap<PsiElement,String> conflicts = processor.getConflicts(usages); assertEquals(expected.length, conflicts.size()); final Iterator<? extends String> iterator = conflicts.values().iterator(); for (String s : expected) { assertTrue(iterator.hasNext()); assertEquals(s, iterator.next()); } }