void (String[] classNames, String targetClassName) { doTest(() -> { final PsiClass[] classes = new PsiClass[classNames.length]; for(int i = 0; i < classes.length; i++){ String className = classNames[i]; classes[i] = myFixture.findClass(className); } PsiClass targetClass = myFixture.findClass(targetClassName); new MoveClassToInnerProcessor(getProject(), classes, targetClass, true, true, null).run(); }); }