void (String className, String targetClassName, String... expectedConflicts) { myFixture.copyDirectoryToProject(getTestName(true) + "/before", ""); PsiClass classToMove = myFixture.findClass(className); PsiClass targetClass = myFixture.findClass(targetClassName); MoveClassToInnerProcessor processor = new MoveClassToInnerProcessor(getProject(), new PsiClass[]{classToMove}, targetClass, true, true, null); UsageInfo[] usages = processor.findUsages(); MultiMap<PsiElement,String> conflicts = processor.getConflicts(usages); assertSameElements(conflicts.values() , expectedConflicts); }