void (boolean toAbstract, boolean failure) { configureByFile(BASE_PATH + getTestName(false) + ".java"); PsiClass currentClass = JavaPsiFacade.getInstance(getProject()).findClass("Test", GlobalSearchScope.projectScope(getProject())); MemberInfoStorage memberInfoStorage = new MemberInfoStorage(currentClass, element -> true); List<MemberInfo> members = memberInfoStorage.getClassMemberInfos(currentClass); for (MemberInfo member : members) { member.setChecked(true); if (toAbstract) { member.setToAbstract(true); } } new PushDownProcessor<>(currentClass, members, new DocCommentPolicy(DocCommentPolicy.ASIS)) { @Override protected boolean showConflicts(@NotNull MultiMap<PsiElement, String> conflicts, UsageInfo[] usages) { if (failure == conflicts.isEmpty()) { fail(failure ? "Conflict was not detected" : "False conflict was detected"); } return true; } }.run(); checkResultByFile(BASE_PATH + getTestName(false) + "_after.java"); }