void (final PsiTypeParameterListOwner member) { final Project project = member.getProject(); final InternalUsageInfo[] classRefsInMember = MakeStaticUtil.findClassRefsInMember(member, false); /* String classParameterName = "anObject"; ParameterTablePanel.VariableData[] fieldParameterData = null; */ AbstractMakeStaticDialog dialog; if (!ApplicationManager.getApplication().isUnitTestMode()) { final boolean[] hasMethodReferenceOnInstance = new boolean[] {false}; if (member instanceof PsiMethod) { if (!ProgressManager.getInstance().runProcessWithProgressSynchronously( (Runnable)() -> hasMethodReferenceOnInstance[0] = !MethodReferencesSearch.search((PsiMethod)member).forEach(reference -> { final PsiElement element = reference.getElement(); return !(element instanceof PsiMethodReferenceExpression); }), JavaRefactoringBundle.message("make.static.method.references.progress"), true, project)) return; } if (classRefsInMember.length > 0 || hasMethodReferenceOnInstance[0]) { final PsiType type = JavaPsiFacade.getElementFactory(project).createType(member.getContainingClass()); //TODO: callback String[] nameSuggestions = JavaCodeStyleManager.getInstance(project).suggestVariableName(VariableKind.PARAMETER, null, null, type).names; dialog = new MakeParameterizedStaticDialog(project, member, nameSuggestions, classRefsInMember); } else { dialog = new SimpleMakeStaticDialog(project, member); } dialog.show(); } }