void (BiFunction<PsiClass, ClassMember[], ClassMember[]> chooser) { String name = getTestName(false); myFixture.configureByFile("before" + name + ".java"); new GenerateConstructorHandler() { @Override protected ClassMember @Nullable [] chooseOriginalMembers(PsiClass aClass, Project project) { return chooser.apply(aClass, getAllOriginalMembers(aClass)); } }.invoke(getProject(), getEditor(), getFile()); myFixture.checkResultByFile("after" + name + ".java"); }