void (String className) { doTest(() -> { PsiClass classToInline = myFixture.findClass(className); classToInline = (PsiClass)classToInline.getNavigationElement(); assertNull(InlineToAnonymousClassHandler.getCannotInlineMessage(classToInline)); assertTrue(new InlineToAnonymousClassHandler().canInlineElement(classToInline)); InlineToAnonymousClassProcessor processor = new InlineToAnonymousClassProcessor(getProject(), classToInline, null, false, false, false); UsageInfo[] usages = processor.findUsages(); MultiMap<PsiElement, String> conflicts = processor.getConflicts(usages); assertEquals(0, conflicts.size()); processor.run(); }); }