void (final boolean inlineThisOnly, final boolean searchInNonJavaFiles) { PsiElement element = TargetElementUtil .findTargetElement(getEditor(), TargetElementUtil.ELEMENT_NAME_ACCEPTED | TargetElementUtil.REFERENCED_ELEMENT_ACCEPTED); PsiCall callToInline = InlineToAnonymousClassHandler.findCallToInline(getEditor()); PsiClass classToInline = (PsiClass) element; assertNull(InlineToAnonymousClassHandler.getCannotInlineMessage(classToInline)); assertTrue(new InlineToAnonymousClassHandler().canInlineElement(element)); final InlineToAnonymousClassProcessor processor = new InlineToAnonymousClassProcessor(getProject(), classToInline, callToInline, inlineThisOnly, false, searchInNonJavaFiles); UsageInfo[] usages = processor.findUsages(); MultiMap<PsiElement, String> conflicts = processor.getConflicts(usages); assertEquals(0, conflicts.size()); processor.run(); }