void (final boolean delegate, final boolean createInner, final Function<PsiMethod, ParameterInfoImpl[]> function) { doTest(() -> { PsiClass aClass = myFixture.findClass("Test"); final PsiMethod method = aClass.findMethodsByName("foo", false)[0]; final ParameterInfoImpl[] datas = function.fun(method); final JavaIntroduceParameterObjectClassDescriptor classDescriptor = new JavaIntroduceParameterObjectClassDescriptor("Param", "", null, false, createInner, null, datas, method, false); final List<ParameterInfoImpl> parameters = new JavaMethodDescriptor(method).getParameters(); IntroduceParameterObjectProcessor processor = new IntroduceParameterObjectProcessor<>( method, classDescriptor, parameters, delegate); processor.run(); }); }