void (boolean addClassParameter, boolean delegate) { PsiElement element = TargetElementUtil.findTargetElement(getEditor(), TargetElementUtil.ELEMENT_NAME_ACCEPTED); assertTrue(element instanceof PsiMethod); PsiMethod method = (PsiMethod) element; new MakeMethodStaticProcessor( getProject(), method, new Settings(true, addClassParameter ? "anObject" : null, null, delegate)).run(); }