void () { if (!myInnerClass.hasModifierProperty(PsiModifier.STATIC)) { final PsiManager manager = myInnerClass.getManager(); PsiType outerType = JavaPsiFacade.getElementFactory(manager.getProject()).createType(myInnerClass.getContainingClass()); mySuggestedNameInfo = JavaCodeStyleManager.getInstance(myProject).suggestVariableName(VariableKind.PARAMETER, null, null, outerType); String[] variants = mySuggestedNameInfo.names; myParameterField = new NameSuggestionsField(variants, myProject); } else { myParameterField = new NameSuggestionsField(new String[]{""}, myProject); myParameterField.getComponent().setEnabled(false); } PsiPackage psiPackage = getTargetPackage(); myPackageNameField = new PackageNameReferenceEditorCombo(psiPackage != null ? psiPackage.getQualifiedName() : "", myProject, RECENTS_KEY, RefactoringBundle.message("choose.destination.package")); }