void (boolean delegate) { PsiElement element = TargetElementUtil.findTargetElement(getEditor(), TargetElementUtil.ELEMENT_NAME_ACCEPTED); assertTrue(element instanceof PsiMethod); PsiMethod method = (PsiMethod) element; final ArrayList<VariableData> parametersForFields = new ArrayList<>(); final boolean addClassParameter = MakeStaticUtil.buildVariableData(method, parametersForFields); new MakeMethodStaticProcessor( getProject(), method, new Settings(true, addClassParameter ? "anObject" : null, parametersForFields.toArray( new VariableData[0]), delegate)).run(); }