void (final String methodName) { doTest(() -> { PsiClass aClass = myFixture.findClass("Test"); assertNotNull("Class Test not found", aClass); final ArrayList<PsiMethod> methods = new ArrayList<>(); methods.add(aClass.findMethodsByName(methodName, false)[0]); final ArrayList<PsiField> fields = new ArrayList<>(); fields.add(aClass.findFieldByName("myT", false)); doTest(aClass, methods, fields, null, false); }); }