void () { if (!validateData()) return; final Settings settings = new Settings( isReplaceUsages(), isMakeClassParameter() ? getClassParameterName() : null, getVariableData(), isGenerateDelegate() ); if (myMember instanceof PsiMethod) { invokeRefactoring(new MakeMethodStaticProcessor(getProject(), (PsiMethod)myMember, settings)); } else { invokeRefactoring(new MakeClassStaticProcessor(getProject(), (PsiClass)myMember, settings)); } }