SuggestedNameInfo (PsiType defaultType, String propName) { PsiExpression expression = myExpr != null && myExpr.isValid() ? myExpr : null; JavaCodeStyleManager codeStyleManager = JavaCodeStyleManager.getInstance(myProject); NameSuggestionsGenerator generator = IntroduceConstantDialog.createNameSuggestionGenerator(propName, expression, codeStyleManager, null, getParentClass()); return generator.getSuggestedNameInfo(defaultType); }