void () { doTest(() -> { PsiClass aClass = myFixture.findClass("Test"); assertNotNull("Class Test not found", aClass); final ArrayList<PsiMethod> methods = new ArrayList<>(); methods.add(aClass.findMethodsByName("foos", false)[0]); final ArrayList<PsiField> fields = new ArrayList<>(); fields.add(aClass.findFieldByName("myT", false)); final ExtractClassProcessor processor = new ExtractClassProcessor(aClass, fields, methods, new ArrayList<>(), "", null, "Extracted", PsiModifier.PUBLIC, false, Collections.emptyList(), false); processor.run(); }); }