void (boolean fail, final boolean inlineOne) { try { doTest(() -> { GlobalSearchScope scope = GlobalSearchScope.allScope(getProject()); PsiClass aClass = myFixture.getJavaFacade().findClass("Test", scope); if (aClass == null) aClass = myFixture.getJavaFacade().findClass("p.Test", scope); assertNotNull("Class Test not found", aClass); PsiClass superClass = myFixture.getJavaFacade().findClass("Super", scope); if (superClass == null) superClass = myFixture.getJavaFacade().findClass("p1.Super", scope); assertNotNull("Class Super not found", superClass); new InlineSuperClassRefactoringProcessor(getProject(), inlineOne ? aClass : null, superClass, DocCommentPolicy.ASIS).run(); }); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { if (fail) { return; } else { throw e; } } if (fail) { fail("Conflict was not detected"); } }