void (final boolean fail, final String sourceClassName, final String... targetClassNames) { try { doTest(() -> { final PsiClass srcClass = myFixture.findClass(sourceClassName); for (String targetClassName : targetClassNames) { myFixture.findClass(targetClassName); } final PsiMethod[] methods = srcClass.getMethods(); assertTrue("No methods found", methods.length > 0); final MemberInfo memberInfo = new MemberInfo(methods[0]); memberInfo.setChecked(true); new PushDownProcessor<>(srcClass, Collections.singletonList(memberInfo), new DocCommentPolicy(DocCommentPolicy.ASIS)).run(); //LocalFileSystem.getInstance().refresh(false); //FileDocumentManager.getInstance().saveAllDocuments(); }); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { if (fail) { return; } else { throw e; } } if (fail) { fail("Conflict was not detected"); } }